public class OutputWritersChain extends AbstractOutputWriter implements OutputWriter
| Modifier and Type | Field and Description |
|---|---|
protected List<OutputWriter> |
outputWriters |
logger| 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 |
write(String metricName,
Object value) |
postConstructclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostConstructprotected final List<OutputWriter> outputWriters
public OutputWritersChain()
public OutputWritersChain(List<OutputWriter> outputWriters)
public void write(String metricName, Object value) throws IOException
write in interface OutputWriterwrite 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 © 2013. All Rights Reserved.