public class OutputWritersChain extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
protected List<OutputWriter> |
outputWriters |
logger, SETTING_LOG_LEVEL, SETTING_LOG_LEVEL_DEFAULT_VALUE| Constructor and Description |
|---|
OutputWritersChain() |
OutputWritersChain(List<OutputWriter> outputWriters) |
| Modifier and Type | Method and Description |
|---|---|
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
preCollect()
Called before metrics collection starts
|
void |
preDestroy() |
void |
writeInvocationResult(String invocationName,
Object value) |
void |
writeQueryResult(String metricName,
String type,
Object value) |
getDebugLevel, getInfoLevel, getTraceLevel, postConstructclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostConstructprotected final List<OutputWriter> outputWriters
public OutputWritersChain()
public OutputWritersChain(List<OutputWriter> outputWriters)
public void writeQueryResult(String metricName, String type, Object value) throws IOException
writeQueryResult in interface OutputWriterwriteQueryResult in class AbstractOutputWritertype - see Query.typeIOExceptionpublic void writeInvocationResult(String invocationName, Object value) throws IOException
writeInvocationResult in interface OutputWriterwriteInvocationResult in class AbstractOutputWriterIOExceptionpublic void preDestroy()
preDestroy in interface OutputWriterpreDestroy in class AbstractOutputWriterpublic void postCollect()
throws IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterpostCollect in class AbstractOutputWriterIOExceptionpublic void preCollect()
throws IOException
OutputWriterpreCollect in interface OutputWriterpreCollect in class AbstractOutputWriterIOExceptionCopyright © 2015. All Rights Reserved.