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() |
abstract void |
writeInvocationResult(String invocationName,
Object value) |
abstract void |
writeQueryResult(String metricName,
String metricType,
Object value) |
protected final Logger logger
public void postConstruct(@Nonnull 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 abstract void writeInvocationResult(@Nonnull String invocationName, @Nullable Object value) throws IOException
writeInvocationResult in interface OutputWriterIOExceptionpublic abstract void writeQueryResult(@Nonnull String metricName, @Nullable String metricType, @Nullable Object value) throws IOException
writeQueryResult in interface OutputWritermetricType - see Query.typeIOExceptionCopyright © 2013. All Rights Reserved.