Class EvaluateStats

    • Constructor Detail

      • EvaluateStats

        public EvaluateStats​(com.codahale.metrics.MetricRegistry registry,
                             Integer dumpStatsFreq,
                             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​(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 identifier
        isNumeric - 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.