public class ThresholdingSessionImpl extends Object implements ThresholdingSession
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
protected ResourceStorageDao |
resourceStorageDao |
protected RrdRepository |
rrdRepository |
protected ThresholdingServiceImpl |
service |
protected ThresholdingSessionKey |
sessionKey |
| Constructor and Description |
|---|
ThresholdingSessionImpl(ThresholdingServiceImpl service,
ThresholdingSessionKey sessionKey,
ResourceStorageDao resourceStorageDao,
RrdRepository rrdRepository,
ServiceParameters serviceParams,
BlobStore blobStore,
boolean isDistributed,
ThresholdStateMonitor thresholdStateMonitor) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(CollectionSet collectionSet)
Accepts a
CollectionSet for threshold evaluation. |
void |
close() |
BlobStore |
getBlobStore() |
ThresholdingSessionKey |
getKey() |
ResourceStorageDao |
getResourceDao() |
RrdRepository |
getRrdRepository() |
ServiceParameters |
getServiceParameters() |
ThresholdStateMonitor |
getThresholdStateMonitor() |
boolean |
isDistributed() |
protected static final org.slf4j.Logger LOG
protected final ThresholdingServiceImpl service
protected final ThresholdingSessionKey sessionKey
protected final ResourceStorageDao resourceStorageDao
protected final RrdRepository rrdRepository
public ThresholdingSessionImpl(ThresholdingServiceImpl service, ThresholdingSessionKey sessionKey, ResourceStorageDao resourceStorageDao, RrdRepository rrdRepository, ServiceParameters serviceParams, BlobStore blobStore, boolean isDistributed, ThresholdStateMonitor thresholdStateMonitor)
public void accept(CollectionSet collectionSet) throws ThresholdInitializationException
ThresholdingSessionCollectionSet for threshold evaluation. The service will send Events if Thresholds are triggered or re-armed.accept in interface ThresholdingSessionThresholdInitializationException - if the Thresholding Configuration has not yet been initialized ot there is an error initializing it.
I.E. reading as parsing the configuration files.public void close()
throws Exception
close in interface AutoCloseableExceptionpublic ThresholdingSessionKey getKey()
getKey in interface ThresholdingSessionpublic BlobStore getBlobStore()
getBlobStore in interface ThresholdingSessionpublic ResourceStorageDao getResourceDao()
public RrdRepository getRrdRepository()
public ServiceParameters getServiceParameters()
public boolean isDistributed()
isDistributed in interface ThresholdingSessionpublic ThresholdStateMonitor getThresholdStateMonitor()
getThresholdStateMonitor in interface ThresholdingSessionCopyright © 2022. All rights reserved.