Class MappingSource

java.lang.Object
com.arpnetworking.metrics.common.sources.BaseSource
com.arpnetworking.metrics.mad.sources.MappingSource
All Implemented Interfaces:
com.arpnetworking.commons.observer.Observable, Source

public final class MappingSource extends BaseSource
Implementation of Source which wraps another Source and merges Metric instances within each Record together if the name matches a regular expression with a new name generated through replacement of all matches in the original name.
Author:
Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Method Details

    • start

      public void start()
      Description copied from interface: Source
      Called to allow the source to start producing records.
    • stop

      public void stop()
      Description copied from interface: Source
      Called to allow the source to clean-up. No further records should be produced.
    • toLogValue

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

      public String toString()
      Overrides:
      toString in class BaseSource