Package org.opennms.netmgt.threshd.api
Interface ThresholdingSession
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ThresholdingSessionImpl
public interface ThresholdingSession extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(CollectionSet collectionSet)Accepts aCollectionSetfor threshold evaluation.BlobStoregetBlobStore()ThresholdingSessionKeygetKey()ThresholdStateMonitorgetThresholdStateMonitor()booleanisDistributed()-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
accept
void accept(CollectionSet collectionSet) throws ThresholdInitializationException
Accepts aCollectionSetfor threshold evaluation. The service will sendEvents 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()
-
-