|
||||||||||
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.ExecAdaptor
public class ExecAdaptor
Runs a command inside chukwa. Takes as params the interval in seconds at which to run the command, and the path and args to execute. Interval is optional, and defaults to 5 seconds. Example usage: add org.apache.hadoop.chukwa.datacollection.adaptor.ExecAdaptor Ps 2 /bin/ps aux 0
Field Summary |
---|
Fields inherited from class org.apache.hadoop.chukwa.datacollection.adaptor.AbstractAdaptor |
---|
adaptorID, control, dest, type |
Constructor Summary | |
---|---|
ExecAdaptor()
|
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. |
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 ExecAdaptor()
Method Detail |
---|
public String getCurrentStatus()
Adaptor
@Deprecated public void hardStop() throws AdaptorException
Adaptor
AdaptorException
@Deprecated public long shutdown() throws AdaptorException
Adaptor
AdaptorException
public long shutdown(AdaptorShutdownPolicy shutdownPolicy) throws AdaptorException
Adaptor
AdaptorException
public void start(long offset) throws AdaptorException
start
in class AbstractAdaptor
AdaptorException
public String parseArgs(String status)
Adaptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |