Package org.apache.camel.component.hdfs
Class HdfsOutputStream
- java.lang.Object
-
- org.apache.camel.component.hdfs.HdfsOutputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class HdfsOutputStream extends Object implements Closeable
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHdfsOutputStream()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(Object key, Object value, org.apache.camel.Exchange exchange)voidclose()static HdfsOutputStreamcreateOutputStream(String hdfsPath, org.apache.camel.component.hdfs.HdfsInfoFactory hdfsInfoFactory)StringgetActualPath()longgetLastAccess()longgetNumOfWrittenBytes()longgetNumOfWrittenMessages()CloseablegetOut()AtomicBooleanisBusy()
-
-
-
Method Detail
-
createOutputStream
public static HdfsOutputStream createOutputStream(String hdfsPath, org.apache.camel.component.hdfs.HdfsInfoFactory hdfsInfoFactory) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
getNumOfWrittenBytes
public long getNumOfWrittenBytes()
-
getNumOfWrittenMessages
public long getNumOfWrittenMessages()
-
getLastAccess
public long getLastAccess()
-
getActualPath
public String getActualPath()
-
isBusy
public AtomicBoolean isBusy()
-
getOut
public Closeable getOut()
-
-