public abstract class AbstractOutputWriter extends Object implements OutputWriter
| Constructor and Description |
|---|
AbstractOutputWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
postCollect()
called after a serie of writes, typically at the end of a collection.
|
void |
postConstruct(Map<String,String> settings) |
void |
preCollect()
Called before metrics collection starts
|
void |
preDestroy() |
void |
writeInvocationResult(String invocationName,
Object value) |
void |
writeQueryResult(String metricName,
Object value) |
protected abstract void |
writeResult(String name,
Object value) |
protected final Logger logger
public void postConstruct(Map<String,String> settings)
postConstruct in interface OutputWriterpublic void preDestroy()
preDestroy in interface OutputWriterpublic void postCollect()
throws IOException
OutputWritercalled after a serie of writes, typically at the end of a collection.
Useful with batch writers.
postCollect in interface OutputWriterIOExceptionpublic void preCollect()
throws IOException
OutputWriterpreCollect in interface OutputWriterIOExceptionpublic void writeQueryResult(String metricName, Object value) throws IOException
writeQueryResult in interface OutputWriterIOExceptionpublic void writeInvocationResult(String invocationName, Object value) throws IOException
writeInvocationResult in interface OutputWriterIOExceptionprotected abstract void writeResult(String name, Object value) throws IOException
IOExceptionCopyright © 2013. All Rights Reserved.