Package org.jmxtrans.agent
Class OutputWritersChain
java.lang.Object
org.jmxtrans.agent.AbstractOutputWriter
org.jmxtrans.agent.OutputWritersChain
- All Implemented Interfaces:
OutputWriter
public class OutputWritersChain extends AbstractOutputWriter implements OutputWriter
- Author:
- Cyrille Le Clerc
-
Field Summary
Fields Modifier and Type Field Description protected List<OutputWriter>outputWritersFields inherited from class org.jmxtrans.agent.AbstractOutputWriter
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE -
Constructor Summary
Constructors Constructor Description OutputWritersChain()OutputWritersChain(List<OutputWriter> outputWriters) -
Method Summary
Modifier and Type Method Description voidpostCollect()called after a serie of writes, typically at the end of a collection.voidpreCollect()Called before metrics collection startsvoidpreDestroy()voidwriteInvocationResult(String invocationName, Object value)voidwriteQueryResult(String metricName, String type, Object value)Methods inherited from class org.jmxtrans.agent.AbstractOutputWriter
getDebugLevel, getInfoLevel, getTraceLevel, postConstructMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jmxtrans.agent.OutputWriter
postConstruct
-
Field Details
-
outputWriters
-
-
Constructor Details
-
OutputWritersChain
public OutputWritersChain() -
OutputWritersChain
-
-
Method Details
-
writeQueryResult
- Specified by:
writeQueryResultin interfaceOutputWriter- Specified by:
writeQueryResultin classAbstractOutputWritertype- seeQuery.type- Throws:
IOException
-
writeInvocationResult
- Specified by:
writeInvocationResultin interfaceOutputWriter- Specified by:
writeInvocationResultin classAbstractOutputWriter- Throws:
IOException
-
preDestroy
public void preDestroy()- Specified by:
preDestroyin interfaceOutputWriter- Overrides:
preDestroyin classAbstractOutputWriter
-
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- Overrides:
postCollectin classAbstractOutputWriter- Throws:
IOException
-
preCollect
Description copied from interface:OutputWriterCalled before metrics collection starts- Specified by:
preCollectin interfaceOutputWriter- Overrides:
preCollectin classAbstractOutputWriter- Throws:
IOException
-