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()
EventListener
getName
in interface EventListener
String
object.public void onEvent(Event e)
EventListener
onEvent
in interface EventListener
e
- 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
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)
Copyright © 2019. All rights reserved.