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, visitGroup
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
completeAttribute, completeCollectionSet, completeGroup, visitGroup
protected ThresholdingVisitorImpl(ThresholdingSetImpl thresholdingSet, ResourceStorageDao resourceStorageDao, ThresholdingEventProxy eventProxy, Long sequenceNumber)
public void setCounterReset(boolean counterReset)
setCounterReset
in interface ThresholdingVisitor
public boolean hasThresholds()
hasThresholds
in interface ThresholdingVisitor
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()
reload
in interface ThresholdingVisitor
public void reloadScheduledOutages() throws ThresholdInitializationException
ThresholdInitializationException
public boolean isNodeInOutage()
public void visitResource(CollectionResource resource)
AbstractCollectionSetVisitor
visitResource
visitResource
in interface CollectionSetVisitor
visitResource
in class AbstractCollectionSetVisitor
resource
- 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 CollectionSetVisitor
visitAttribute
in class AbstractCollectionSetVisitor
attribute
- a org.opennms.netmgt.collection.api.collectd.CollectionAttribute
object.public void completeResource(CollectionResource resource)
completeResource
in interface CollectionSetVisitor
completeResource
in class AbstractCollectionSetVisitor
resource
- a CollectionResource
object.public Date getCollectionTimestamp()
ThresholdingVisitor
getCollectionTimestamp
in interface ThresholdingVisitor
public ThresholdingEventProxy getEventProxy()
public void setEventProxy(ThresholdingEventProxy eventProxy)
public int getNodeId()
Copyright © 2021. All rights reserved.