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 |
write(String metricName,
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 abstract void write(String metricName, Object value) throws IOException
write in interface OutputWriterIOExceptionCopyright © 2013. All Rights Reserved.