public class ThresholdingVisitor extends AbstractCollectionSetVisitor
| Modifier and Type | Class and Description |
|---|---|
static class |
ThresholdingVisitor.ThresholdingResult |
| 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,
ServiceParameters svcParams,
ResourceStorageDao resourceStorageDao)
Static method create must be used to create new ThresholdingVisitor instance.
|
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() |
void |
setCounterReset(boolean counterReset) |
String |
toString() |
void |
visitAttribute(CollectionAttribute attribute)
Add/Update required attributes for thresholds on m_attributeMap.
|
void |
visitCollectionSet(CollectionSet set)
visitCollectionSet
|
void |
visitResource(CollectionResource resource)
Clear required attributes map
|
completeAttribute, completeCollectionSet, completeGroup, visitGroupprotected ThresholdingVisitor(CollectorThresholdingSet thresholdingSet)
Constructor for ThresholdingVisitor.
thresholdingSet - a CollectorThresholdingSet object.public static ThresholdingVisitor create(int nodeId, String hostAddress, String serviceName, RrdRepository repo, ServiceParameters svcParams, ResourceStorageDao resourceStorageDao) throws ThresholdInitializationException
nodeId - a int.hostAddress - a String object.serviceName - a String object.repo - a RrdRepository object.svcParams - a ServiceParameters object.ThresholdingVisitor object.ThresholdInitializationExceptionpublic void setCounterReset(boolean counterReset)
public boolean hasThresholds()
public void visitCollectionSet(CollectionSet set)
AbstractCollectionSetVisitorvisitCollectionSet
visitCollectionSet in interface CollectionSetVisitorvisitCollectionSet in class AbstractCollectionSetVisitorset - a org.opennms.netmgt.collectd.CollectionSet object.public void reload()
public void reloadScheduledOutages()
throws ThresholdInitializationException
ThresholdInitializationExceptionpublic boolean isNodeInOutage()
public void visitResource(CollectionResource resource)
visitResource in interface CollectionSetVisitorvisitResource in class AbstractCollectionSetVisitorresource - a CollectionResource object.public void visitAttribute(CollectionAttribute attribute)
CollectionResource does not have direct reference to their attributes.
(The way to get attribute is against AttributeGroup object contained on CollectionResource
implementations).visitAttribute in interface CollectionSetVisitorvisitAttribute in class AbstractCollectionSetVisitorattribute - a org.opennms.netmgt.collection.api.collectd.CollectionAttribute object.public void completeResource(CollectionResource resource)
completeResource in interface CollectionSetVisitorcompleteResource in class AbstractCollectionSetVisitorresource - a CollectionResource object.public Date getCollectionTimestamp()
Copyright © 2020. All rights reserved.