public class ConsoleWriter extends Object implements ChukwaWriter
ChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatus
COMMIT_FAIL, COMMIT_OK
Constructor and Description |
---|
ConsoleWriter() |
ConsoleWriter(boolean printData) |
Modifier and Type | Method and Description |
---|---|
void |
add(Chunk data) |
ChukwaWriter.CommitStatus |
add(List<Chunk> chunks)
Called repeatedly with data that should be serialized.
|
void |
close()
Called once, indicating that the writer should close files and prepare
to exit.
|
void |
init(org.apache.hadoop.conf.Configuration conf)
Called once to initialize this writer.
|
public ConsoleWriter()
public ConsoleWriter(boolean printData)
public void close()
ChukwaWriter
close
in interface ChukwaWriter
public void init(org.apache.hadoop.conf.Configuration conf) throws WriterException
ChukwaWriter
init
in interface ChukwaWriter
conf
- is Chukwa configurationWriterException
- if error writing datapublic void add(Chunk data) throws WriterException
WriterException
public ChukwaWriter.CommitStatus add(List<Chunk> chunks) throws WriterException
ChukwaWriter
add
in interface ChukwaWriter
chunks
- is a list of data to sendWriterException
- if error writing dataCopyright © 2016 Apache Software Foundation. All Rights Reserved.