org.apache.camel.component.hdfs
Class HdfsOutputStream

java.lang.Object
  extended by org.apache.camel.component.hdfs.HdfsOutputStream
All Implemented Interfaces:
Closeable

public class HdfsOutputStream
extends Object
implements Closeable


Constructor Summary
protected HdfsOutputStream()
           
 
Method Summary
 void append(Object key, Object value, org.apache.camel.TypeConverter typeConverter)
           
 void close()
           
static HdfsOutputStream createOutputStream(String hdfsPath, HdfsConfiguration configuration)
           
 String getActualPath()
           
 long getLastAccess()
           
 long getNumOfWrittenBytes()
           
 long getNumOfWrittenMessages()
           
 Closeable getOut()
           
 AtomicBoolean isBusy()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HdfsOutputStream

protected HdfsOutputStream()
Method Detail

createOutputStream

public static HdfsOutputStream createOutputStream(String hdfsPath,
                                                  HdfsConfiguration configuration)
                                           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

append

public void append(Object key,
                   Object value,
                   org.apache.camel.TypeConverter typeConverter)

getNumOfWrittenBytes

public long getNumOfWrittenBytes()

getNumOfWrittenMessages

public long getNumOfWrittenMessages()

getLastAccess

public long getLastAccess()

getActualPath

public String getActualPath()

isBusy

public AtomicBoolean isBusy()

getOut

public Closeable getOut()


Apache Camel