Package org.jmxtrans.agent
Class SummarizingFileOverwriterOutputWriter
java.lang.Object
org.jmxtrans.agent.SummarizingFileOverwriterOutputWriter
- All Implemented Interfaces:
OutputWriter
public class SummarizingFileOverwriterOutputWriter extends Object implements OutputWriter
Waiting for a configuration extension to combine the
PerMinuteSummarizerOutputWriter with the
FileOverwriterOutputWriter, this class hard-codes the wiring.- Author:
- Cyrille Le Clerc
-
Constructor Summary
Constructors Constructor Description SummarizingFileOverwriterOutputWriter() -
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)
-
Constructor Details
-
SummarizingFileOverwriterOutputWriter
public SummarizingFileOverwriterOutputWriter()
-
-
Method Details
-
postConstruct
- Specified by:
postConstructin interfaceOutputWriter
-
preDestroy
public void preDestroy()- Specified by:
preDestroyin interfaceOutputWriter
-
preCollect
Description copied from interface:OutputWriterCalled before metrics collection starts- Specified by:
preCollectin interfaceOutputWriter- Throws:
IOException
-
writeQueryResult
public void writeQueryResult(@Nonnull String metricName, @Nullable String metricType, @Nullable Object value) throws IOException- Specified by:
writeQueryResultin interfaceOutputWritermetricType- 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- Throws:
IOException
-
writeInvocationResult
public void writeInvocationResult(@Nonnull String invocationName, @Nullable Object value) throws IOException- Specified by:
writeInvocationResultin interfaceOutputWriter- Throws:
IOException
-