public class FilePerPostWriter extends SeqFileWriter
SeqFileWriter.StatReportingTaskChukwaWriter.COMMIT_PENDING, ChukwaWriter.CommitStatusFIXED_INTERVAL_OFFSET_OPT, IF_FIXED_INTERVAL_OPT, localHostAddr, OUTPUT_DIR_OPT, ROTATE_INTERVAL_OPT, STAT_PERIOD_OPTCOMMIT_FAIL, COMMIT_OK| Constructor and Description |
|---|
FilePerPostWriter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getBytesWritten, setEnableRotationOnClosesetNextStagepublic ChukwaWriter.CommitStatus add(List<Chunk> chunks) throws WriterException
ChukwaWriteradd in interface ChukwaWriteradd in class SeqFileWriterchunks - is a list of data to sendWriterException - if error writing datapublic void close()
ChukwaWriterclose in interface ChukwaWriterclose in class SeqFileWriterpublic void init(org.apache.hadoop.conf.Configuration conf)
throws WriterException
ChukwaWriterinit in interface ChukwaWriterinit in class SeqFileWriterconf - is Chukwa configurationWriterException - if error writing dataCopyright © 2016 Apache Software Foundation. All Rights Reserved.