Class ZabbixTcpOutputWriter

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

public class ZabbixTcpOutputWriter
extends AbstractOutputWriter
implements OutputWriter
Author:
Steve McDuff
  • Field Details

    • SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS

      public static final java.lang.String SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS
      See Also:
      Constant Field Values
    • SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS_DEFAULT_VALUE

      public static final int SETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS_DEFAULT_VALUE
      See Also:
      Constant Field Values
    • zabbixServerHostAndPort

      protected HostAndPort zabbixServerHostAndPort
  • Constructor Details

    • ZabbixTcpOutputWriter

      public ZabbixTcpOutputWriter()
  • 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
    • writeInvocationResult

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

      protected void writeMessage​(byte[] data) throws java.io.IOException
      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
      Overrides:
      postCollect in class AbstractOutputWriter
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • preDestroy

      public void preDestroy()
      Specified by:
      preDestroy in interface OutputWriter
      Overrides:
      preDestroy in class AbstractOutputWriter