org.apache.hadoop.chukwa.datacollection.writer
Class ExtractorWriter
java.lang.Object
org.apache.hadoop.chukwa.datacollection.writer.PipelineableWriter
org.apache.hadoop.chukwa.datacollection.writer.ExtractorWriter
- All Implemented Interfaces:
- ChukwaWriter
public class ExtractorWriter
- extends PipelineableWriter
Method Summary |
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 c)
Called once to initialize this writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recipient
public static LogDisplayServlet recipient
ExtractorWriter
public ExtractorWriter()
close
public void close()
throws WriterException
- Description copied from interface:
ChukwaWriter
- Called once, indicating that the writer should close files and prepare
to exit.
- Throws:
WriterException
init
public void init(org.apache.hadoop.conf.Configuration c)
throws WriterException
- Description copied from interface:
ChukwaWriter
- Called once to initialize this writer.
- Throws:
WriterException
add
public ChukwaWriter.CommitStatus add(List<Chunk> chunks)
throws WriterException
- Description copied from interface:
ChukwaWriter
- Called repeatedly with data that should be serialized.
Subclasses may assume that init() will be called before any calls to
add(), and that add() won't be called after close().
- Specified by:
add
in interface ChukwaWriter
- Overrides:
add
in class PipelineableWriter
- Returns:
-
- Throws:
WriterException
Copyright © ${year} The Apache Software Foundation