Package org.opennms.netmgt.threshd.api
Interface ThresholdStateMonitor
-
- All Known Implementing Classes:
BlobStoreAwareMonitor
public interface ThresholdStateMonitorAn 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 voidreinitializeState(String stateKey)Reinitialize a single state identified by the given key.voidreinitializeStates()Reinitialize all states currently tracked by this monitor.voidtrackState(String key, ReinitializableState state)Track the given state identified by the given key.voidwithReadLock(Runnable r)Run some arbitrary code while holding the lock to the state monitor.
-
-
-
Method Detail
-
trackState
void trackState(String key, ReinitializableState state)
Track the given state identified by the given key.
-
withReadLock
void withReadLock(Runnable r)
Run some arbitrary code while holding the lock to the state monitor. This is used to block reinitialization while the givencodeis running.
-
reinitializeState
void reinitializeState(String stateKey)
Reinitialize a single state identified by the given key.
-
reinitializeStates
void reinitializeStates()
Reinitialize all states currently tracked by this monitor.
-
-