Class SentinelThreshdDao
- java.lang.Object
-
- org.opennms.netmgt.config.dao.thresholding.impl.AbstractThreshdDao
-
- org.opennms.netmgt.config.dao.thresholding.impl.SentinelThreshdDao
-
- All Implemented Interfaces:
ReadableDao<ThreshdConfiguration>
,ReadableThreshdDao
public class SentinelThreshdDao extends AbstractThreshdDao
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.config.dao.thresholding.impl.AbstractThreshdDao
JSON_STORE_KEY
-
-
Constructor Summary
Constructors Constructor Description SentinelThreshdDao(JsonStore jsonStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThreshdConfiguration
getReadOnlyConfig()
Get the current configuration.void
reload()
Subclasses should call this reload after they have performed their reload logic.-
Methods inherited from class org.opennms.netmgt.config.dao.thresholding.impl.AbstractThreshdDao
interfaceInPackage, rebuildPackageIpListMap
-
-
-
-
Constructor Detail
-
SentinelThreshdDao
public SentinelThreshdDao(JsonStore jsonStore)
-
-
Method Detail
-
getReadOnlyConfig
public ThreshdConfiguration 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, seeReadableDao.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 seeWriteableDao.getWriteableConfig()
.
-
reload
public void reload()
Description copied from class:AbstractThreshdDao
Subclasses should call this reload after they have performed their reload logic.- Specified by:
reload
in interfaceReadableDao<ThreshdConfiguration>
- Overrides:
reload
in classAbstractThreshdDao
-
-