Package org.jmxtrans.agent.zabbix
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 Summary
Fields Modifier and Type Field Description static StringSETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLISstatic intSETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS_DEFAULT_VALUEprotected HostAndPortzabbixServerHostAndPortFields inherited from class org.jmxtrans.agent.AbstractOutputWriter
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE -
Constructor Summary
Constructors Constructor Description ZabbixTcpOutputWriter() -
Method Summary
Modifier and Type Method Description voidpostCollect()called after a serie of writes, typically at the end of a collection.voidpostConstruct(Map<String,String> settings)voidpreDestroy()StringtoString()voidwriteInvocationResult(String invocationName, Object value)protected voidwriteMessage(byte[] data)voidwriteQueryResult(String metricName, String type, Object value)Methods inherited from class org.jmxtrans.agent.AbstractOutputWriter
getDebugLevel, getInfoLevel, getTraceLevel, preCollectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jmxtrans.agent.OutputWriter
preCollect
-
Field Details
-
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
-
-
Constructor Details
-
ZabbixTcpOutputWriter
public ZabbixTcpOutputWriter()
-
-
Method Details
-
postConstruct
- Specified by:
postConstructin interfaceOutputWriter- Overrides:
postConstructin classAbstractOutputWriter
-
writeInvocationResult
public void writeInvocationResult(@Nonnull String invocationName, @Nullable Object value) throws IOException- Specified by:
writeInvocationResultin interfaceOutputWriter- Specified by:
writeInvocationResultin classAbstractOutputWriter- Throws:
IOException
-
writeQueryResult
public void writeQueryResult(@Nonnull String metricName, @Nullable String type, @Nullable Object value) throws IOException- Specified by:
writeQueryResultin interfaceOutputWriter- Specified by:
writeQueryResultin classAbstractOutputWritertype- seeQuery.type- Throws:
IOException
-
writeMessage
- Throws:
IOException
-
postCollect
Description copied from interface:OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
- Specified by:
postCollectin interfaceOutputWriter- Overrides:
postCollectin classAbstractOutputWriter- Throws:
IOException
-
toString
-
preDestroy
public void preDestroy()- Specified by:
preDestroyin interfaceOutputWriter- Overrides:
preDestroyin classAbstractOutputWriter
-