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
ThresholdingSession
CollectionSet
for threshold evaluation. The service will send Event
s if Thresholds are triggered or re-armed.accept
in interface ThresholdingSession
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.public void close() throws Exception
close
in interface AutoCloseable
Exception
public ThresholdingSessionKey getKey()
getKey
in interface ThresholdingSession
public BlobStore getBlobStore()
getBlobStore
in interface ThresholdingSession
public ResourceStorageDao getResourceDao()
public RrdRepository getRrdRepository()
public ServiceParameters getServiceParameters()
public boolean isDistributed()
isDistributed
in interface ThresholdingSession
public ThresholdStateMonitor getThresholdStateMonitor()
getThresholdStateMonitor
in interface ThresholdingSession
Copyright © 2021. All rights reserved.