Class EvaluateStats
- java.lang.Object
-
- org.opennms.netmgt.collection.persistence.evaluate.EvaluateStats
-
public class EvaluateStats extends Object
The Class EvaluateStats.- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description EvaluateStats(com.codahale.metrics.MetricRegistry registry, Integer dumpStatsFreq, Integer dumpCacheFreq)
Instantiates a new evaluate statistics.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAttribute(String attributeId, boolean isNumeric)
Checks a attribute.void
checkGroup(String groupId)
Checks a group.void
checkNode(CollectionResource resource)
Checks a node.void
checkResource(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, Integer dumpStatsFreq, 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(CollectionResource resource)
Checks a node.- Parameters:
resource
- the collection resource
-
checkResource
public void checkResource(String resourceId)
Checks a resource.- Parameters:
resourceId
- the resource identifier
-
checkAttribute
public void checkAttribute(String attributeId, boolean isNumeric)
Checks a attribute.- Parameters:
attributeId
- the attribute identifierisNumeric
- true if the attribute is numeric
-
checkGroup
public void checkGroup(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.
-
-