Package org.jmxtrans.agent
Class GraphitePlainTextTcpOutputWriter
java.lang.Object
org.jmxtrans.agent.AbstractOutputWriter
org.jmxtrans.agent.GraphitePlainTextTcpOutputWriter
- All Implemented Interfaces:
OutputWriter
public class GraphitePlainTextTcpOutputWriter extends AbstractOutputWriter implements OutputWriter
- Author:
- Cyrille Le Clerc
-
Field Summary
Fields Modifier and Type Field Description protected HostAndPortgraphiteServerHostAndPortstatic StringSETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLISstatic intSETTING_SOCKET_CONNECT_TIMEOUT_IN_MILLIS_DEFAULT_VALUEFields inherited from class org.jmxtrans.agent.AbstractOutputWriter
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE -
Constructor Summary
Constructors Constructor Description GraphitePlainTextTcpOutputWriter() -
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)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
-
graphiteServerHostAndPort
-
-
Constructor Details
-
GraphitePlainTextTcpOutputWriter
public GraphitePlainTextTcpOutputWriter()
-
-
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
-
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
-