|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.chukwa.datacollection.adaptor.AbstractAdaptor
org.apache.hadoop.chukwa.datacollection.adaptor.DirTailingAdaptor
public class DirTailingAdaptor
Explore a whole directory hierarchy, looking for files to tail. DirTailingAdaptor will not try to start tailing a file more than once, if the file hasn't been modified in the interim. Offset param is used to track last finished scan. Mandatory first parameter is a directory. Mandatory second parameter is the name of an adaptor to start. If the specified directory does not exist, the DirTailer will continue running, and will start tailing if the directory is later created.
Field Summary |
---|
Fields inherited from class org.apache.hadoop.chukwa.datacollection.adaptor.AbstractAdaptor |
---|
adaptorID, control, dest, type |
Constructor Summary | |
---|---|
DirTailingAdaptor()
|
Method Summary | |
---|---|
String |
getCurrentStatus()
Return the adaptor's state Should not include class name or byte offset, which are written by caller. |
void |
hardStop()
Deprecated. |
String |
parseArgs(String status)
Parse args, return stream name. |
void |
run()
|
long |
shutdown()
Deprecated. |
long |
shutdown(AdaptorShutdownPolicy shutdownPolicy)
Signals this adaptor to come to an orderly stop. |
void |
start(long offset)
|
Methods inherited from class org.apache.hadoop.chukwa.datacollection.adaptor.AbstractAdaptor |
---|
deregisterAndStop, getType, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirTailingAdaptor()
Method Detail |
---|
public void start(long offset) throws AdaptorException
start
in class AbstractAdaptor
AdaptorException
public void run()
run
in interface Runnable
public String getCurrentStatus()
Adaptor
getCurrentStatus
in interface Adaptor
public String parseArgs(String status)
Adaptor
parseArgs
in interface Adaptor
@Deprecated public long shutdown() throws AdaptorException
Adaptor
shutdown
in interface Adaptor
AdaptorException
@Deprecated public void hardStop() throws AdaptorException
Adaptor
hardStop
in interface Adaptor
AdaptorException
public long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
Adaptor
shutdown
in interface Adaptor
AdaptorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |