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 protected
HdfsOutputStream()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(Object key, Object value, org.apache.camel.Exchange exchange)
void
close()
static HdfsOutputStream
createOutputStream(String hdfsPath, org.apache.camel.component.hdfs.HdfsInfoFactory hdfsInfoFactory)
String
getActualPath()
long
getLastAccess()
long
getNumOfWrittenBytes()
long
getNumOfWrittenMessages()
Closeable
getOut()
AtomicBoolean
isBusy()
-
-
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in 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()
-
-