public class ThresholdingVisitorImpl extends AbstractCollectionSetVisitor implements ThresholdingVisitor
| Modifier | Constructor and Description |
|---|---|
protected |
ThresholdingVisitorImpl(ThresholdingSetImpl thresholdingSet,
ResourceStorageDao resourceStorageDao,
ThresholdingEventProxy eventProxy,
Long sequenceNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
completeResource(CollectionResource resource)
Apply threshold for specific resource (and required attributes).
|
Date |
getCollectionTimestamp()
Return the collection timestamp passed in at construct time.
|
ThresholdingEventProxy |
getEventProxy() |
int |
getNodeId() |
boolean |
hasThresholds() |
boolean |
isNodeInOutage() |
void |
reload()
Force reload thresholds configuration, and merge threshold states
|
void |
reloadScheduledOutages() |
void |
setCounterReset(boolean counterReset) |
void |
setEventProxy(ThresholdingEventProxy eventProxy) |
String |
toString() |
void |
visitAttribute(CollectionAttribute attribute)
Add/Update required attributes for thresholds on m_attributeMap.
|
void |
visitCollectionSet(CollectionSet set)
visitCollectionSet
|
void |
visitResource(CollectionResource resource)
visitResource
|
completeAttribute, completeCollectionSet, completeGroup, visitGroupclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompleteAttribute, completeCollectionSet, completeGroup, visitGroupprotected ThresholdingVisitorImpl(ThresholdingSetImpl thresholdingSet, ResourceStorageDao resourceStorageDao, ThresholdingEventProxy eventProxy, Long sequenceNumber)
public void setCounterReset(boolean counterReset)
setCounterReset in interface ThresholdingVisitorpublic boolean hasThresholds()
hasThresholds in interface ThresholdingVisitorpublic void visitCollectionSet(CollectionSet set)
AbstractCollectionSetVisitorvisitCollectionSet
visitCollectionSet in interface CollectionSetVisitorvisitCollectionSet in class AbstractCollectionSetVisitorset - a org.opennms.netmgt.collectd.CollectionSet object.public void reload()
reload in interface ThresholdingVisitorpublic void reloadScheduledOutages()
throws ThresholdInitializationException
ThresholdInitializationExceptionpublic boolean isNodeInOutage()
public void visitResource(CollectionResource resource)
AbstractCollectionSetVisitorvisitResource
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()
ThresholdingVisitorgetCollectionTimestamp in interface ThresholdingVisitorpublic ThresholdingEventProxy getEventProxy()
public void setEventProxy(ThresholdingEventProxy eventProxy)
public int getNodeId()
Copyright © 2022. All rights reserved.