Package org.opennms.netmgt.threshd.api
Interface ThresholdingService
-
- All Known Implementing Classes:
ThresholdingServiceImpl
public interface ThresholdingServiceThresholding API Service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThresholdingSessioncreateSession(int nodeId, String hostAddress, String serviceName, RrdRepository rrdRepository, ServiceParameters serviceParameters)Creates a session to perform Thresholding against.ThresholdingSetPersistergetThresholdingSetPersister()
-
-
-
Method Detail
-
createSession
ThresholdingSession createSession(int nodeId, String hostAddress, String serviceName, RrdRepository rrdRepository, ServiceParameters serviceParameters) throws ThresholdInitializationException
Creates a session to perform Thresholding against. The Session is keyed by the combination of nodeId, hostAddress and serviceName.- Parameters:
nodeId- The Node Id.hostAddress- The Host IP Address.serviceName- The Service name.rrdRepository- Must not be null. Will be used to resolve Resource Filters and for genertaing Event labels.serviceParameters- 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.
-
getThresholdingSetPersister
ThresholdingSetPersister getThresholdingSetPersister()
-
-