Package org.jmxtrans.agent
Class SummarizingConsoleOutputWriter
java.lang.Object
org.jmxtrans.agent.SummarizingConsoleOutputWriter
- All Implemented Interfaces:
OutputWriter
public class SummarizingConsoleOutputWriter extends java.lang.Object implements OutputWriter
Waiting for a configuration extension to combine the
PerMinuteSummarizerOutputWriter with the
ConsoleOutputWriter, this class hard-codes the wiring.- Author:
- Cyrille Le Clerc
-
Constructor Summary
Constructors Constructor Description SummarizingConsoleOutputWriter() -
Method Summary
Modifier and Type Method Description voidpostCollect()called after a serie of writes, typically at the end of a collection.voidpostConstruct(java.util.Map<java.lang.String,java.lang.String> settings)voidpreCollect()Called before metrics collection startsvoidpreDestroy()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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SummarizingConsoleOutputWriter
public SummarizingConsoleOutputWriter()
-
-
Method Details
-
postConstruct
public void postConstruct(@Nonnull java.util.Map<java.lang.String,java.lang.String> settings)- Specified by:
postConstructin interfaceOutputWriter
-
preDestroy
public void preDestroy()- Specified by:
preDestroyin interfaceOutputWriter
-
preCollect
public void preCollect() throws java.io.IOExceptionDescription copied from interface:OutputWriterCalled before metrics collection starts- Specified by:
preCollectin interfaceOutputWriter- Throws:
java.io.IOException
-
writeQueryResult
public void writeQueryResult(@Nonnull java.lang.String metricName, @Nullable java.lang.String metricType, @Nullable java.lang.Object value) throws java.io.IOException- Specified by:
writeQueryResultin interfaceOutputWritermetricType- seeQuery.type- Throws:
java.io.IOException
-
postCollect
public void postCollect() throws java.io.IOExceptionDescription 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:
java.io.IOException
-
writeInvocationResult
public void writeInvocationResult(@Nonnull java.lang.String invocationName, @Nullable java.lang.Object value) throws java.io.IOException- Specified by:
writeInvocationResultin interfaceOutputWriter- Throws:
java.io.IOException
-