Interface ThresholdingVisitor

  • All Superinterfaces:
    CollectionSetVisitor
    All Known Implementing Classes:
    ThresholdingVisitorImpl

    public interface ThresholdingVisitor
    extends CollectionSetVisitor
    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) Assumes and requires that the any visitation start at CollectionSet level, so that the collection timestamp can be recorded.
    Version:
    $Id: $
    Author:
    Alejandro Galue, Craig Miskell
    • Method Detail

      • getCollectionTimestamp

        java.util.Date getCollectionTimestamp()
        Return the collection timestamp passed in at construct time. Used by integration test.
      • hasThresholds

        boolean hasThresholds()
        Returns:
        TRUE if there are defined thresholds for the node/address/service of the contained ThresholdingSet.
      • reload

        void reload()
        Force reload thresholds configuration, and merge threshold states
      • setCounterReset

        void setCounterReset​(boolean counterReset)