This project has retired. For details please refer to its Attic page.
OffsetStatsManager (Apache Chukwa 0.7.0 API)
Skip navigation links

Class OffsetStatsManager<T>

    • Field Detail

      • log

        protected org.apache.log4j.Logger log
    • Constructor Detail

      • OffsetStatsManager

        public OffsetStatsManager()
      • OffsetStatsManager

        public OffsetStatsManager(long statsDataTTL)
    • Method Detail

      • addOffsetDataPoint

        public void addOffsetDataPoint(T key,
                                       long offset,
                                       long timestamp)
        Record that at a given point in time an object key had a given offset.
        key - Object to key this data point to
        offset - How much of an offset to record
        timestamp - The time the offset occured
      • calcAverageRate

        public double calcAverageRate(T key,
                                      long timeIntervalSecs)
      • remove

        public void remove(T key)
        Remove key from the set of objects that we're tracking stats for.
        key - key of stats to be removed
      • clear

        public void clear()
        Remove all objectst that we're tracking stats for.

Copyright © 2015 Apache Software Foundation. All Rights Reserved.