Class SummarizingFileOverwriterOutputWriter

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

public class SummarizingFileOverwriterOutputWriter
extends java.lang.Object
implements OutputWriter
Waiting for a configuration extension to combine the PerMinuteSummarizerOutputWriter with the FileOverwriterOutputWriter, this class hard-codes the wiring.
Author:
Cyrille Le Clerc
  • Constructor Summary

    Constructors
    Constructor Description
    SummarizingFileOverwriterOutputWriter()  
  • Method Summary

    Modifier and Type Method Description
    void postCollect()
    called after a serie of writes, typically at the end of a collection.
    void postConstruct​(java.util.Map<java.lang.String,​java.lang.String> settings)  
    void preCollect()
    Called before metrics collection starts
    void preDestroy()  
    void writeInvocationResult​(java.lang.String invocationName, java.lang.Object value)  
    void writeQueryResult​(java.lang.String metricName, java.lang.String metricType, java.lang.Object value)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SummarizingFileOverwriterOutputWriter

      public SummarizingFileOverwriterOutputWriter()
  • Method Details

    • postConstruct

      public void postConstruct​(@Nonnull java.util.Map<java.lang.String,​java.lang.String> settings)
      Specified by:
      postConstruct in interface OutputWriter
    • preDestroy

      public void preDestroy()
      Specified by:
      preDestroy in interface OutputWriter
    • preCollect

      public void preCollect() throws java.io.IOException
      Description copied from interface: OutputWriter
      Called before metrics collection starts
      Specified by:
      preCollect in interface OutputWriter
      Throws:
      java.io.IOException
    • writeQueryResult

      public void writeQueryResult​(@Nonnull java.lang.String metricName, @Nullable java.lang.String metricType, @Nullable java.lang.Object value) throws java.io.IOException
      Specified by:
      writeQueryResult in interface OutputWriter
      metricType - see Query.type
      Throws:
      java.io.IOException
    • 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
      Throws:
      java.io.IOException
    • writeInvocationResult

      public void writeInvocationResult​(@Nonnull java.lang.String invocationName, @Nullable java.lang.Object value) throws java.io.IOException
      Specified by:
      writeInvocationResult in interface OutputWriter
      Throws:
      java.io.IOException