org.apache.hadoop.chukwa.inputtools.plugin
Class ExecPlugin
java.lang.Object
org.apache.hadoop.chukwa.inputtools.plugin.ExecPlugin
- All Implemented Interfaces:
- IPlugin
- Direct Known Subclasses:
- ExecHelper, NodeActivityPlugin, PbsNodePlugin
public abstract class ExecPlugin
- extends Object
- implements IPlugin
Runs external command-line tools, captures output.
Subclasses are responsible for implementing getCmde(), which determines the
command to be invoked.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
statusOK
public final int statusOK
- See Also:
- Constant Field Values
statusKO
public final int statusKO
- See Also:
- Constant Field Values
ExecPlugin
public ExecPlugin()
stop
public void stop()
waitFor
public int waitFor()
throws InterruptedException
- Throws:
InterruptedException
getCmde
public abstract String getCmde()
postProcess
public org.json.JSONObject postProcess(org.json.JSONObject execResult)
execute
public org.json.JSONObject execute()
- Specified by:
execute
in interface IPlugin
Copyright © ${year} The Apache Software Foundation