Package org.opennms.netmgt.threshd
Class ThresholdingSetImpl
- java.lang.Object
-
- org.opennms.netmgt.threshd.ThresholdingSetImpl
-
- All Implemented Interfaces:
ThresholdingSet
public class ThresholdingSetImpl extends Object implements ThresholdingSet
Abstract ThresholdingSet class.
- Author:
- Alejandro Galue
-
-
Field Summary
Fields Modifier and Type Field Description protected ThresholdingEventProxy
m_eventProxy
protected String
m_hostAddress
protected int
m_nodeId
protected List<String>
m_scheduledOutages
protected String
m_serviceName
protected List<ThresholdGroup>
m_thresholdGroups
protected ThresholdsDao
m_thresholdsDao
-
Constructor Summary
Constructors Constructor Description ThresholdingSetImpl(int nodeId, String hostAddress, String serviceName, ServiceParameters svcParams, ThresholdingEventProxy eventProxy, ThresholdingSession thresholdingSession, ReadableThreshdDao threshdDao, ReadableThresholdingDao thresholdingDao, ReadablePollOutagesDao pollOutagesDao, IfLabel ifLabelDao, EntityScopeProvider entityScopeProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Event>
applyThresholds(CollectionResource resource, Map<String,CollectionAttribute> attributesMap, Date collectionTimestamp, Long sequenceNumber)
protected List<Event>
applyThresholds(CollectionResourceWrapper resourceWrapper, Map<String,CollectionAttribute> attributesMap)
int
getNodeId()
List<String>
getscheduledOutages()
List<ThresholdGroup>
getThresholdGroups()
boolean
hasThresholds()
boolean
hasThresholds(CollectionAttribute attribute)
protected void
initialize()
protected void
initThresholdsDao()
boolean
isNodeInOutage()
protected boolean
passedThresholdFilters(CollectionResourceWrapper resource, ThresholdEntity thresholdEntity)
void
reinitialize()
void
setCounterReset(boolean counterReset)
String
toString()
protected void
updateScheduledOutages()
-
-
-
Field Detail
-
m_nodeId
protected final int m_nodeId
-
m_hostAddress
protected final String m_hostAddress
-
m_serviceName
protected final String m_serviceName
-
m_thresholdsDao
protected ThresholdsDao m_thresholdsDao
-
m_eventProxy
protected ThresholdingEventProxy m_eventProxy
-
m_thresholdGroups
protected final List<ThresholdGroup> m_thresholdGroups
-
-
Constructor Detail
-
ThresholdingSetImpl
public ThresholdingSetImpl(int nodeId, String hostAddress, String serviceName, ServiceParameters svcParams, ThresholdingEventProxy eventProxy, ThresholdingSession thresholdingSession, ReadableThreshdDao threshdDao, ReadableThresholdingDao thresholdingDao, ReadablePollOutagesDao pollOutagesDao, IfLabel ifLabelDao, EntityScopeProvider entityScopeProvider) throws ThresholdInitializationException
- Throws:
ThresholdInitializationException
-
-
Method Detail
-
initialize
protected void initialize() throws ThresholdInitializationException
- Throws:
ThresholdInitializationException
-
reinitialize
public void reinitialize()
- Specified by:
reinitialize
in interfaceThresholdingSet
-
hasThresholds
public boolean hasThresholds()
-
isNodeInOutage
public final boolean isNodeInOutage()
-
applyThresholds
protected final List<Event> applyThresholds(CollectionResourceWrapper resourceWrapper, Map<String,CollectionAttribute> attributesMap)
-
passedThresholdFilters
protected boolean passedThresholdFilters(CollectionResourceWrapper resource, ThresholdEntity thresholdEntity)
-
initThresholdsDao
protected final void initThresholdsDao() throws ThresholdInitializationException
- Throws:
ThresholdInitializationException
-
updateScheduledOutages
protected void updateScheduledOutages()
-
setCounterReset
public void setCounterReset(boolean counterReset)
-
hasThresholds
public boolean hasThresholds(CollectionAttribute attribute)
-
applyThresholds
public List<Event> applyThresholds(CollectionResource resource, Map<String,CollectionAttribute> attributesMap, Date collectionTimestamp, Long sequenceNumber)
-
getThresholdGroups
public List<ThresholdGroup> getThresholdGroups()
-
getNodeId
public int getNodeId()
-
-