org.apache.hadoop.chukwa.datacollection.writer
Class ChukwaWriter.COMMIT_PENDING

java.lang.Object
  extended by org.apache.hadoop.chukwa.datacollection.writer.ChukwaWriter.CommitStatus
      extended by 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.


Field Summary
 List<String> pendingEntries
           
 
Constructor Summary
ChukwaWriter.COMMIT_PENDING(int entries)
           
 
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
 

Field Detail

pendingEntries

public List<String> pendingEntries
Constructor Detail

ChukwaWriter.COMMIT_PENDING

public ChukwaWriter.COMMIT_PENDING(int entries)
Method Detail

addPend

public void addPend(String currentFileName,
                    long dataSize)


Copyright © ${year} The Apache Software Foundation