Package org.opennms.netmgt.threshd.api
Interface ThresholdStateMonitor
-
- All Known Implementing Classes:
BlobStoreAwareMonitor
public interface ThresholdStateMonitor
An interface for tracking and reinitializing the in-memory values of thresholding states.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
reinitializeState(java.lang.String stateKey)
Reinitialize a single state identified by the given key.void
reinitializeStates()
Reinitialize all states currently tracked by this monitor.void
trackState(java.lang.String key, ReinitializableState state)
Track the given state identified by the given key.void
withReadLock(java.lang.Runnable r)
Run some arbitrary code while holding the lock to the state monitor.
-
-
-
Method Detail
-
trackState
void trackState(java.lang.String key, ReinitializableState state)
Track the given state identified by the given key.
-
withReadLock
void withReadLock(java.lang.Runnable r)
Run some arbitrary code while holding the lock to the state monitor. This is used to block reinitialization while the givencode
is running.
-
reinitializeState
void reinitializeState(java.lang.String stateKey)
Reinitialize a single state identified by the given key.
-
reinitializeStates
void reinitializeStates()
Reinitialize all states currently tracked by this monitor.
-
-