Package org.jmxtrans.agent
Class GraphiteUdpOutputWriter
java.lang.Object
org.jmxtrans.agent.AbstractOutputWriter
org.jmxtrans.agent.GraphiteUdpOutputWriter
- All Implemented Interfaces:
OutputWriter
public class GraphiteUdpOutputWriter extends AbstractOutputWriter
Output writer for writing to Graphite using UDP.
- Author:
- Kristoffer Erlandsson
-
Field Summary
Fields inherited from class org.jmxtrans.agent.AbstractOutputWriter
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE -
Constructor Summary
Constructors Constructor Description GraphiteUdpOutputWriter() -
Method Summary
Modifier and Type Method Description voidpostConstruct(java.util.Map<java.lang.String,java.lang.String> settings)voidpreDestroy()java.lang.StringtoString()voidwriteInvocationResult(java.lang.String invocationName, java.lang.Object value)voidwriteQueryResult(java.lang.String metricName, java.lang.String metricType, java.lang.Object value)Methods inherited from class org.jmxtrans.agent.AbstractOutputWriter
getDebugLevel, getInfoLevel, getTraceLevel, postCollect, preCollectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
GraphiteUdpOutputWriter
public GraphiteUdpOutputWriter()
-
-
Method Details
-
postConstruct
public void postConstruct(java.util.Map<java.lang.String,java.lang.String> settings)- Specified by:
postConstructin interfaceOutputWriter- Overrides:
postConstructin classAbstractOutputWriter
-
writeInvocationResult
public void writeInvocationResult(java.lang.String invocationName, java.lang.Object value) throws java.io.IOException- Specified by:
writeInvocationResultin interfaceOutputWriter- Specified by:
writeInvocationResultin classAbstractOutputWriter- Throws:
java.io.IOException
-
writeQueryResult
public void writeQueryResult(java.lang.String metricName, java.lang.String metricType, java.lang.Object value) throws java.io.IOException- Specified by:
writeQueryResultin interfaceOutputWriter- Specified by:
writeQueryResultin classAbstractOutputWritermetricType- seeQuery.type- Throws:
java.io.IOException
-
preDestroy
public void preDestroy()- Specified by:
preDestroyin interfaceOutputWriter- Overrides:
preDestroyin classAbstractOutputWriter
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-