Class 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​(CollectionResource resource)
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 registry
        dumpStatsFreq - the frequency in minutes to dump the statistics to the log file
        dumpCacheFreq - 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​(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 identifier
        isNumeric - 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.