Package org.opennms.netmgt.threshd
Class ThresholdingServiceImpl
- java.lang.Object
-
- org.opennms.netmgt.threshd.ThresholdingServiceImpl
-
- All Implemented Interfaces:
EventListener,ThresholdingService
public class ThresholdingServiceImpl extends Object implements ThresholdingService, EventListener
Thresholding Service.
-
-
Constructor Summary
Constructors Constructor Description ThresholdingServiceImpl()
-
Method Summary
-
-
-
Method Detail
-
initOsgi
public void initOsgi()
-
getName
public String getName()
Description copied from interface:EventListenerReturn the id of the listener- Specified by:
getNamein interfaceEventListener- Returns:
- a
Stringobject.
-
onEvent
public void onEvent(IEvent e)
Description copied from interface:EventListenerProcess a sent event.- Specified by:
onEventin interfaceEventListener- Parameters:
e- aIEventobject.
-
nodeGainedService
public void nodeGainedService(IEvent event)
-
handleNodeCategoryChanged
public void handleNodeCategoryChanged(IEvent event)
-
createSession
public ThresholdingSession createSession(int nodeId, String hostAddress, String serviceName, RrdRepository repository, ServiceParameters serviceParams) throws ThresholdInitializationException
Description copied from interface:ThresholdingServiceCreates a session to perform Thresholding against. The Session is keyed by the combination of nodeId, hostAddress and serviceName.- Specified by:
createSessionin interfaceThresholdingService- Parameters:
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 existingCollectionResourceobjects to evaluate whether to apply thresholds when accepting aCollectionSet. If yourCollectionResourcedoes not require this, pass an emptyServiceParametersobject.- Returns:
- A
ThresholdingSession - Throws:
ThresholdInitializationException- if there is an error creating theThresholdingSessionbecause of invalid Thresholding Configuration.
-
getThresholdingVistor
public ThresholdingVisitorImpl getThresholdingVistor(ThresholdingSession session, Long sequenceNumber) throws ThresholdInitializationException
- Throws:
ThresholdInitializationException
-
getEventIpcManager
public EventIpcManager getEventIpcManager()
-
setEventIpcManager
public void setEventIpcManager(EventIpcManager eventIpcManager)
-
setEventProxy
@Autowired public void setEventProxy(EventForwarder eventForwarder)
-
getThresholdingSetPersister
public ThresholdingSetPersister getThresholdingSetPersister()
- Specified by:
getThresholdingSetPersisterin interfaceThresholdingService
-
setThresholdingSetPersister
public void setThresholdingSetPersister(ThresholdingSetPersister thresholdingSetPersister)
-
close
public void close(ThresholdingSessionImpl session)
-
setKvStore
public void setKvStore(BlobStore keyValueStore)
-
setDistributed
public void setDistributed(boolean distributed)
-
setThresholdStateMonitor
public void setThresholdStateMonitor(ThresholdStateMonitor thresholdStateMonitor)
-
-