Class OnmsThresholdingDao

    • Constructor Detail

      • OnmsThresholdingDao

        public OnmsThresholdingDao​(JsonStore jsonStore)
                            throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getReadOnlyConfig

        public ThresholdingConfig getReadOnlyConfig()
        Description copied from interface: ReadableDao
        Get the current configuration. Whether or not this configuration is in sync with the backing data source is up to the implementation, see ReadableDao.reload(). The value returned by this method may be the result of merging multiple objects together. As a result, mutations to this object may not be visible to other readers and are not permitted. For cases where mutation and/or persistence of changes is required see WriteableDao.getWriteableConfig().
        Specified by:
        getReadOnlyConfig in interface ReadableDao<ThresholdingConfig>
        Returns:
        the merged configuration consisting of the filesystem configuration and any configuration provided by extensions
      • reload

        public void reload()
        Description copied from interface: ReadableDao
        Instructs the DAO to reload the configuration from the backing data source immediately. Whether or not the config actually gets reloaded is up to the implementation as it may already be up to date. However invoking this method should guarantee that a subsequent call to ReadableDao.getReadOnlyConfig() yields the up to date configuration.
        Specified by:
        reload in interface ReadableDao<ThresholdingConfig>
      • onConfigChanged

        public void onConfigChanged()
        Description copied from interface: WriteableDao
        Notify the DAO that the configuration it tracks has changed.

        Call this method after updating the filesystem configuration directly or after providing a config extension.

        Specified by:
        onConfigChanged in interface WriteableDao<ThresholdingConfig>