This project has retired. For details please refer to its Attic page.
OffsetStatsManager (Apache Chukwa 0.6.0 API)
org.apache.hadoop.chukwa.datacollection

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.
        Parameters:
        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.
        Parameters:
        key - key of stats to be removed
      • clear

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

Copyright © 2014 Apache Software Foundation. All Rights Reserved.