Class Aggregator

java.lang.Object
com.arpnetworking.metrics.mad.Aggregator
All Implemented Interfaces:
com.arpnetworking.commons.observer.Observer, Launchable

public final class Aggregator extends Object implements com.arpnetworking.commons.observer.Observer, Launchable
Performs aggregation of Record instances per Duration. This class is thread safe.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io), Ryan Ascheman (rascheman at groupon dot com)
  • Method Details

    • launch

      public void launch()
      Description copied from interface: Launchable
      Launch the component.
      Specified by:
      launch in interface Launchable
    • shutdown

      public void shutdown()
      Description copied from interface: Launchable
      Shutdown the component.
      Specified by:
      shutdown in interface Launchable
    • notify

      public void notify(com.arpnetworking.commons.observer.Observable observable, Object event)
      Specified by:
      notify in interface com.arpnetworking.commons.observer.Observer
    • toLogValue

      public Object toLogValue()
      Generate a Steno log compatible representation.
      Returns:
      Steno log compatible representation.
    • toString

      public String toString()
      Overrides:
      toString in class Object