Class OutputWriterCircuitBreakerDecorator

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

public class OutputWriterCircuitBreakerDecorator
extends java.lang.Object
implements OutputWriter
Author:
Cyrille Le Clerc
  • Field Details

  • Constructor Details

    • OutputWriterCircuitBreakerDecorator

      public OutputWriterCircuitBreakerDecorator​(OutputWriter delegate)
  • Method Details

    • postConstruct

      public void postConstruct​(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
    • writeInvocationResult

      public void writeInvocationResult​(java.lang.String invocationName, java.lang.Object value) throws java.io.IOException
      Specified by:
      writeInvocationResult in interface OutputWriter
      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
    • isDisabled

      public boolean isDisabled()
    • incrementOutputWriterFailures

      public void incrementOutputWriterFailures()
    • incrementOutputWriterSuccess

      public void incrementOutputWriterSuccess()