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(Map<String,String> settings)voidpreDestroy()StringtoString()voidwriteInvocationResult(String invocationName, Object value)voidwriteQueryResult(String metricName, String metricType, Object value)Methods inherited from class org.jmxtrans.agent.AbstractOutputWriter
getDebugLevel, getInfoLevel, getTraceLevel, postCollect, preCollect
-
Constructor Details
-
GraphiteUdpOutputWriter
public GraphiteUdpOutputWriter()
-
-
Method Details
-
postConstruct
- Specified by:
postConstructin interfaceOutputWriter- Overrides:
postConstructin classAbstractOutputWriter
-
writeInvocationResult
- Specified by:
writeInvocationResultin interfaceOutputWriter- Specified by:
writeInvocationResultin classAbstractOutputWriter- Throws:
IOException
-
writeQueryResult
public void writeQueryResult(String metricName, String metricType, Object value) throws IOException- Specified by:
writeQueryResultin interfaceOutputWriter- Specified by:
writeQueryResultin classAbstractOutputWritermetricType- seeQuery.type- Throws:
IOException
-
preDestroy
public void preDestroy()- Specified by:
preDestroyin interfaceOutputWriter- Overrides:
preDestroyin classAbstractOutputWriter
-
toString
-