|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.sink.hdfs.AbstractHDFSWriter
@InterfaceAudience.Private @InterfaceStability.Evolving public abstract class AbstractHDFSWriter
Constructor Summary | |
---|---|
AbstractHDFSWriter()
|
Method Summary | |
---|---|
void |
configure(Context context)
Request the implementing class to (re)configure itself. |
int |
getFsDesiredReplication()
|
int |
getNumCurrentReplicas()
This method gets the datanode replication count for the current open file. |
boolean |
isUnderReplicated()
Contract for subclasses: Call registerCurrentStream() on open, unregisterCurrentStream() on close, and the base class takes care of the rest. |
protected void |
registerCurrentStream(org.apache.hadoop.fs.FSDataOutputStream outputStream,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path destPath)
|
protected void |
unregisterCurrentStream()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.flume.sink.hdfs.HDFSWriter |
---|
append, close, open, open, sync |
Constructor Detail |
---|
public AbstractHDFSWriter()
Method Detail |
---|
public void configure(Context context)
Configurable
Request the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarrantees on when configure might be called.
configure
in interface Configurable
public boolean isUnderReplicated()
isUnderReplicated
in interface HDFSWriter
protected void registerCurrentStream(org.apache.hadoop.fs.FSDataOutputStream outputStream, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path destPath)
protected void unregisterCurrentStream()
public int getFsDesiredReplication()
public int getNumCurrentReplicas() throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
InvocationTargetException
IllegalAccessException
IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |