Package org.opennms.netmgt.threshd.api
Interface ThresholdingSession
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
ThresholdingSessionImpl
public interface ThresholdingSession extends java.lang.AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(CollectionSet collectionSet)
Accepts aCollectionSet
for threshold evaluation.BlobStore
getBlobStore()
ThresholdingSessionKey
getKey()
ThresholdStateMonitor
getThresholdStateMonitor()
boolean
isDistributed()
-
-
-
Method Detail
-
accept
void accept(CollectionSet collectionSet) throws ThresholdInitializationException
Accepts aCollectionSet
for threshold evaluation. The service will sendEvent
s if Thresholds are triggered or re-armed.- Parameters:
collectionSet
-- Throws:
ThresholdInitializationException
- if the Thresholding Configuration has not yet been initialized ot there is an error initializing it. I.E. reading as parsing the configuration files.
-
getKey
ThresholdingSessionKey getKey()
-
getBlobStore
BlobStore getBlobStore()
-
isDistributed
boolean isDistributed()
- Returns:
- true if we are thresholding in a distributed environment (i.e. Sentinel) false otherwise (i.e. OpenNMS)
-
getThresholdStateMonitor
ThresholdStateMonitor getThresholdStateMonitor()
-
-