public class ThresholdingVisitor extends AbstractCollectionSetVisitor
Modifier | Constructor and Description |
---|---|
protected |
ThresholdingVisitor(CollectorThresholdingSet thresholdingSet)
Constructor for ThresholdingVisitor.
|
Modifier and Type | Method and Description |
---|---|
void |
completeResource(CollectionResource resource)
Apply threshold for specific resource (and required attributes).
|
static ThresholdingVisitor |
create(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repo,
Map<String,Object> roProps)
Is static because successful creation depends on thresholding-enabled parameter.
|
Date |
getCollectionTimestamp()
Return the collection timestamp passed in at construct time.
|
boolean |
hasThresholds() |
boolean |
isNodeInOutage() |
void |
reload()
Force reload thresholds configuration, and merge threshold states
|
void |
reloadScheduledOutages() |
String |
toString() |
void |
visitAttribute(CollectionAttribute attribute)
Add/Update required attributes for thresholds on m_attributeMap.
|
void |
visitCollectionSet(CollectionSet set)
visitCollectionSet
|
void |
visitResource(CollectionResource resource)
Initialize required attributes map (m_attributesMap)
|
completeAttribute, completeCollectionSet, completeGroup, visitGroup
protected ThresholdingVisitor(CollectorThresholdingSet thresholdingSet)
Constructor for ThresholdingVisitor.
thresholdingSet
- a CollectorThresholdingSet
object.public static ThresholdingVisitor create(int nodeId, String hostAddress, String serviceName, RrdRepository repo, Map<String,Object> roProps)
nodeId
- a int.hostAddress
- a String
object.serviceName
- a String
object.repo
- a RrdRepository
object.roProps
- a Map
object.ThresholdingVisitor
object.public boolean hasThresholds()
public void visitCollectionSet(CollectionSet set)
AbstractCollectionSetVisitor
visitCollectionSet
visitCollectionSet
in interface CollectionSetVisitor
visitCollectionSet
in class AbstractCollectionSetVisitor
set
- a org.opennms.netmgt.collectd.CollectionSet
object.public void reload()
public void reloadScheduledOutages()
public boolean isNodeInOutage()
public void visitResource(CollectionResource resource)
visitResource
in interface CollectionSetVisitor
visitResource
in class AbstractCollectionSetVisitor
resource
- a CollectionResource
object.public void visitAttribute(CollectionAttribute attribute)
visitAttribute
in interface CollectionSetVisitor
visitAttribute
in class AbstractCollectionSetVisitor
attribute
- a org.opennms.netmgt.collectd.CollectionAttribute
object.public void completeResource(CollectionResource resource)
completeResource
in interface CollectionSetVisitor
completeResource
in class AbstractCollectionSetVisitor
resource
- a CollectionResource
object.public Date getCollectionTimestamp()
Copyright © 2015. All Rights Reserved.