Class EvaluateStats
- java.lang.Object
-
- org.opennms.netmgt.collection.persistence.evaluate.EvaluateStats
-
public class EvaluateStats extends java.lang.Object
The Class EvaluateStats.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description EvaluateStats(com.codahale.metrics.MetricRegistry registry, java.lang.Integer dumpStatsFreq, java.lang.Integer dumpCacheFreq)
Instantiates a new evaluate statistics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAttribute(java.lang.String attributeId, boolean isNumeric)
Checks a attribute.void
checkGroup(java.lang.String groupId)
Checks a group.void
checkNode(java.lang.String nodeId)
Checks a node.void
checkResource(java.lang.String resourceId)
Checks a resource.protected void
dumpCache()
Dumps the content of the cache.void
markNumericSamplesMeter()
Marks the numeric samples meter.
-
-
-
Constructor Detail
-
EvaluateStats
public EvaluateStats(com.codahale.metrics.MetricRegistry registry, java.lang.Integer dumpStatsFreq, java.lang.Integer dumpCacheFreq)
Instantiates a new evaluate statistics.- Parameters:
registry
- the metrics registrydumpStatsFreq
- the frequency in minutes to dump the statistics to the log filedumpCacheFreq
- the frequency in minutes to dump the cache content to the log file
-
-
Method Detail
-
checkNode
public void checkNode(java.lang.String nodeId)
Checks a node.- Parameters:
nodeId
- the node identifier
-
checkResource
public void checkResource(java.lang.String resourceId)
Checks a resource.- Parameters:
resourceId
- the resource identifier
-
checkAttribute
public void checkAttribute(java.lang.String attributeId, boolean isNumeric)
Checks a attribute.- Parameters:
attributeId
- the attribute identifierisNumeric
- true if the attribute is numeric
-
checkGroup
public void checkGroup(java.lang.String groupId)
Checks a group.- Parameters:
groupId
- the group identifier
-
markNumericSamplesMeter
public void markNumericSamplesMeter()
Marks the numeric samples meter.
-
dumpCache
protected void dumpCache()
Dumps the content of the cache.
-
-