public class ThresholdingSet extends Object
Abstract ThresholdingSet class.
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_hostAddress |
protected int |
m_nodeId |
protected RrdRepository |
m_repository |
protected List<String> |
m_scheduledOutages |
protected String |
m_serviceName |
protected List<ThresholdGroup> |
m_thresholdGroups |
protected ThresholdsDao |
m_thresholdsDao |
| Constructor and Description |
|---|
ThresholdingSet(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repository)
Constructor for ThresholdingSet.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<Event> |
applyThresholds(CollectionResourceWrapper resourceWrapper,
Map<String,CollectionAttribute> attributesMap) |
boolean |
hasThresholds()
hasThresholds
|
boolean |
hasThresholds(String resourceTypeName,
String attributeName) |
protected void |
initialize()
initialize
|
protected void |
initThresholdsDao()
initThresholdsDao
|
boolean |
isNodeInOutage() |
protected boolean |
passedThresholdFilters(CollectionResourceWrapper resource,
ThresholdEntity thresholdEntity)
passedThresholdFilters
|
void |
reinitialize() |
void |
reinitialize(boolean reloadThresholdConfig)
reinitialize
|
String |
toString() |
protected void |
updateScheduledOutages() |
protected final int m_nodeId
protected final String m_hostAddress
protected final String m_serviceName
protected final RrdRepository m_repository
protected ThresholdsDao m_thresholdsDao
protected final List<ThresholdGroup> m_thresholdGroups
public ThresholdingSet(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repository)
throws ThresholdInitializationException
Constructor for ThresholdingSet.
nodeId - a int.hostAddress - a String object.serviceName - a String object.repository - a RrdRepository object.interval - a long.ThresholdInitializationExceptionprotected void initialize()
throws ThresholdInitializationException
initialize
ThresholdInitializationExceptionpublic void reinitialize()
public void reinitialize(boolean reloadThresholdConfig)
reinitialize
public boolean hasThresholds()
hasThresholds
public final boolean isNodeInOutage()
protected final List<Event> applyThresholds(CollectionResourceWrapper resourceWrapper, Map<String,CollectionAttribute> attributesMap)
protected boolean passedThresholdFilters(CollectionResourceWrapper resource, ThresholdEntity thresholdEntity)
passedThresholdFilters
resource - a CollectionResourceWrapper object.thresholdEntity - a ThresholdEntity object.protected final void initThresholdsDao()
throws ThresholdInitializationException
initThresholdsDao
ThresholdInitializationExceptionprotected void updateScheduledOutages()
throws ThresholdInitializationException
ThresholdInitializationExceptionCopyright © 2020. All rights reserved.