Package org.jmxtrans.agent
Interface OutputWriter
- All Known Implementing Classes:
AbstractOutputWriter,ConsoleOutputWriter,DevNullOutputWriter,FileOverwriterOutputWriter,GraphitePlainTextTcpOutputWriter,GraphiteUdpOutputWriter,InfluxDbOutputWriter,LibratoWriter,OutputWriterCircuitBreakerDecorator,OutputWritersChain,PerMinuteSummarizerOutputWriter,RollingFileOutputWriter,StackdriverWriter,StatsDOutputWriter,SummarizingConsoleOutputWriter,SummarizingFileOverwriterOutputWriter,ZabbixTcpOutputWriter
public interface OutputWriter
- Author:
- Cyrille Le Clerc
-
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)voidpreCollect()Called before metrics collection startsvoidpreDestroy()voidwriteInvocationResult(String invocationName, Object value)voidwriteQueryResult(String metricName, String metricType, Object value)
-
Method Details
-
postConstruct
-
preDestroy
void preDestroy() -
preCollect
Called before metrics collection starts- Throws:
IOException
-
writeQueryResult
void writeQueryResult(@Nonnull String metricName, @Nullable String metricType, @Nullable Object value) throws IOException- Parameters:
metricName-metricType- seeQuery.typevalue-- Throws:
IOException
-
postCollect
called after a serie of writes, typically at the end of a collection.
Useful with batch writers.
- Throws:
IOException
-
writeInvocationResult
void writeInvocationResult(@Nonnull String invocationName, @Nullable Object value) throws IOException- Throws:
IOException
-