|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.collectd.AbstractCollectionSetVisitor
org.opennms.netmgt.threshd.ThresholdingVisitor
public class ThresholdingVisitor
Implements CollectionSetVisitor to implement thresholding. Works by simply recording all the attributes that come in via visitAttribute into an internal data structure, per resource, and then on "completeResource", does threshold checking against that in memory structure. Suggested usage is one per CollectableService; this object holds the current state of thresholds for this interface/service combination (so perhaps needs a better name than ThresholdingVisitor)
| Constructor Summary | |
|---|---|
protected |
ThresholdingVisitor(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repo,
List<String> groupNameList)
|
| Method Summary | |
|---|---|
void |
completeResource(CollectionResource resource)
|
static ThresholdingVisitor |
createThresholdingVisitor(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repo,
Map params)
|
static void |
handleThresholdConfigChanged()
|
protected static void |
initThresholdsDao()
|
void |
initThresholdState()
Causes a new set of ThresholdEntity instances (i.e. |
String |
toString()
|
void |
visitAttribute(CollectionAttribute attribute)
|
void |
visitResource(CollectionResource resource)
When called, we're starting a new resource. |
| Methods inherited from class org.opennms.netmgt.collectd.AbstractCollectionSetVisitor |
|---|
completeAttribute, completeCollectionSet, completeGroup, visitCollectionSet, visitGroup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ThresholdingVisitor(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repo,
List<String> groupNameList)
| Method Detail |
|---|
protected static void initThresholdsDao()
public static void handleThresholdConfigChanged()
public static ThresholdingVisitor createThresholdingVisitor(int nodeId,
String hostAddress,
String serviceName,
RrdRepository repo,
Map params)
public void initThresholdState()
public void visitResource(CollectionResource resource)
visitResource in interface CollectionSetVisitorvisitResource in class AbstractCollectionSetVisitorpublic void visitAttribute(CollectionAttribute attribute)
visitAttribute in interface CollectionSetVisitorvisitAttribute in class AbstractCollectionSetVisitorpublic void completeResource(CollectionResource resource)
completeResource in interface CollectionSetVisitorcompleteResource in class AbstractCollectionSetVisitorpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||