public class ThresholdingServiceImpl extends Object implements ThresholdingService, EventListener
| Constructor and Description |
|---|
ThresholdingServiceImpl() |
public void initOsgi()
public String getName()
EventListenergetName in interface EventListenerString object.public void onEvent(IEvent e)
EventListeneronEvent in interface EventListenere - 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
ThresholdingServicecreateSession in interface ThresholdingServicenodeId - 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.ThresholdingSessionThresholdInitializationException - if there is an error creating the ThresholdingSession because of invalid Thresholding Configuration.public ThresholdingVisitorImpl getThresholdingVistor(ThresholdingSession session, Long sequenceNumber) throws ThresholdInitializationException
ThresholdInitializationExceptionpublic EventIpcManager getEventIpcManager()
public void setEventIpcManager(EventIpcManager eventIpcManager)
@Autowired public void setEventProxy(EventForwarder eventForwarder)
public ThresholdingSetPersister getThresholdingSetPersister()
getThresholdingSetPersister in interface ThresholdingServicepublic 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 © 2022. All rights reserved.