Class SentinelPollOutagesDao
- java.lang.Object
-
- org.opennms.netmgt.config.dao.outages.impl.AbstractPollOutagesDao
-
- org.opennms.netmgt.config.dao.outages.impl.SentinelPollOutagesDao
-
- All Implemented Interfaces:
ReadableDao<Outages>
,ReadablePollOutagesDao
public class SentinelPollOutagesDao extends AbstractPollOutagesDao
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.config.dao.outages.impl.AbstractPollOutagesDao
JSON_STORE_KEY
-
-
Constructor Summary
Constructors Constructor Description SentinelPollOutagesDao(JsonStore jsonStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Outages
getReadOnlyConfig()
Get the current configuration.void
reload()
Instructs the DAO to reload the configuration from the backing data source immediately.-
Methods inherited from class org.opennms.netmgt.config.dao.outages.impl.AbstractPollOutagesDao
getEndOfOutage, getEndOfOutage, getInterfaces, getNodeIds, getOutageTimes, getOutageType, isCurTimeInOutage, isCurTimeInOutage, isInterfaceInOutage, isInterfaceInOutage, isNodeIdInOutage, isNodeIdInOutage, isTimeInOutage, isTimeInOutage, isTimeInOutage
-
-
-
-
Constructor Detail
-
SentinelPollOutagesDao
public SentinelPollOutagesDao(JsonStore jsonStore)
-
-
Method Detail
-
getReadOnlyConfig
public Outages 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 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 toReadableDao.getReadOnlyConfig()
yields the up to date configuration.
-
-