public class ThresholdingServiceImpl extends Object implements ThresholdingService, EventListener
| Constructor and Description |
|---|
ThresholdingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(ThresholdingSessionImpl session) |
ThresholdingSession |
createSession(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repository,
ServiceParameters serviceParams)
Creates a session to perform Thresholding against.
|
EventIpcManager |
getEventIpcManager() |
String |
getName()
Return the id of the listener
|
ThresholdingSetPersister |
getThresholdingSetPersister() |
ThresholdingVisitorImpl |
getThresholdingVistor(ThresholdingSession session,
Long sequenceNumber) |
void |
handleNodeCategoryChanged(Event event) |
void |
initOsgi() |
void |
nodeGainedService(Event event) |
void |
onEvent(Event e)
Process a sent event.
|
void |
setDistributed(boolean distributed) |
void |
setEventIpcManager(EventIpcManager eventIpcManager) |
void |
setEventProxy(EventForwarder eventForwarder) |
void |
setKvStore(BlobStore keyValueStore) |
void |
setThresholdingSetPersister(ThresholdingSetPersister thresholdingSetPersister) |
public void initOsgi()
public String getName()
EventListenergetName in interface EventListenerString object.public void onEvent(Event e)
EventListeneronEvent in interface EventListenere - a Event object.public void nodeGainedService(Event event)
public void handleNodeCategoryChanged(Event 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)
Copyright © 2019. All rights reserved.