org.apache.hadoop.chukwa.datacollection.writer
Class ChukwaWriter.COMMIT_PENDING
java.lang.Object
org.apache.hadoop.chukwa.datacollection.writer.ChukwaWriter.CommitStatus
org.apache.hadoop.chukwa.datacollection.writer.ChukwaWriter.COMMIT_PENDING
- Enclosing interface:
- ChukwaWriter
public static class ChukwaWriter.COMMIT_PENDING
- extends ChukwaWriter.CommitStatus
COMMIT_PENDING should be returned if a writer has written data, but
this data may ultimately disappear. Contains a list of strings, format
unspecified, that agents can use to find out, eventually, if their data
has committed. String corresponds to the nth chunk passed to add().
At present, the format is ,
where sinkfilename is the name of a sinkfile, without directory but with
.done suffix, and offset is the last byte of the associated chunk.
Method Summary |
void |
addPend(String currentFileName,
long dataSize)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pendingEntries
public List<String> pendingEntries
ChukwaWriter.COMMIT_PENDING
public ChukwaWriter.COMMIT_PENDING(int entries)
addPend
public void addPend(String currentFileName,
long dataSize)
Copyright © ${year} The Apache Software Foundation