Class LibratoWriter

java.lang.Object
org.jmxtrans.agent.AbstractOutputWriter
org.jmxtrans.agent.LibratoWriter
All Implemented Interfaces:
OutputWriter

public class LibratoWriter
extends AbstractOutputWriter
implements OutputWriter
OutputWriter for Librato.
  • Field Details

    • DEFAULT_LIBRATO_API_URL

      public static final java.lang.String DEFAULT_LIBRATO_API_URL
      See Also:
      Constant Field Values
    • SETTING_USERNAME

      public static final java.lang.String SETTING_USERNAME
      See Also:
      Constant Field Values
    • SETTING_TOKEN

      public static final java.lang.String SETTING_TOKEN
      See Also:
      Constant Field Values
  • Constructor Details

    • LibratoWriter

      public LibratoWriter()
  • Method Details

    • postConstruct

      public void postConstruct​(java.util.Map<java.lang.String,​java.lang.String> settings)
      Specified by:
      postConstruct in interface OutputWriter
      Overrides:
      postConstruct in class AbstractOutputWriter
    • postCollect

      public void postCollect() throws java.io.IOException
      Description copied from interface: OutputWriter

      called after a serie of writes, typically at the end of a collection.

      Useful with batch writers.

      Specified by:
      postCollect in interface OutputWriter
      Overrides:
      postCollect in class AbstractOutputWriter
      Throws:
      java.io.IOException
    • writeInvocationResult

      public void writeInvocationResult​(java.lang.String invocationName, java.lang.Object value) throws java.io.IOException
      Specified by:
      writeInvocationResult in interface OutputWriter
      Specified by:
      writeInvocationResult in class AbstractOutputWriter
      Throws:
      java.io.IOException
    • writeQueryResult

      public void writeQueryResult​(java.lang.String metricName, java.lang.String metricType, java.lang.Object value) throws java.io.IOException
      Specified by:
      writeQueryResult in interface OutputWriter
      Specified by:
      writeQueryResult in class AbstractOutputWriter
      metricType - see Query.type
      Throws:
      java.io.IOException
    • writeQueryResult

      protected void writeQueryResult​(java.lang.String metricName, java.lang.String metricType, java.lang.Object value, java.io.Writer out) throws java.io.IOException
      Throws:
      java.io.IOException
    • getExceptionCounter

      public int getExceptionCounter()