public class ThresholdingServiceImpl extends Object implements ThresholdingService, EventListener
Constructor and Description |
---|
ThresholdingServiceImpl() |
public void initOsgi()
public String getName()
EventListener
getName
in interface EventListener
String
object.public void onEvent(IEvent e)
EventListener
onEvent
in interface EventListener
e
- a IEvent
object.public void nodeGainedService(IEvent event)
public void handleNodeCategoryChanged(IEvent event)
public ThresholdingSession createSession(int nodeId, String hostAddress, String serviceName, RrdRepository repository, ServiceParameters serviceParams) throws ThresholdInitializationException
ThresholdingService
createSession
in interface ThresholdingService
nodeId
- The Node Id.hostAddress
- The Host IP Address.serviceName
- The Service name.repository
- Must not be null. Will be used to resolve Resource Filters and for genertaing Event labels.serviceParams
- Must not be null. Required by some existing CollectionResource
objects to evaluate whether to apply thresholds when accepting a CollectionSet
.
If your CollectionResource
does not require this, pass an empty ServiceParameters
object.ThresholdingSession
ThresholdInitializationException
- if there is an error creating the ThresholdingSession
because of invalid Thresholding Configuration.public ThresholdingVisitorImpl getThresholdingVistor(ThresholdingSession session, Long sequenceNumber) throws ThresholdInitializationException
ThresholdInitializationException
public EventIpcManager getEventIpcManager()
public void setEventIpcManager(EventIpcManager eventIpcManager)
@Autowired public void setEventProxy(EventForwarder eventForwarder)
public ThresholdingSetPersister getThresholdingSetPersister()
getThresholdingSetPersister
in interface ThresholdingService
public void setThresholdingSetPersister(ThresholdingSetPersister thresholdingSetPersister)
public void close(ThresholdingSessionImpl session)
public void setKvStore(BlobStore keyValueStore)
public void setDistributed(boolean distributed)
public void setThresholdStateMonitor(ThresholdStateMonitor thresholdStateMonitor)
Copyright © 2021. All rights reserved.