com.stericson.RootTools.execution
Class CommandCapture

java.lang.Object
  extended by com.stericson.RootTools.execution.Command
      extended by com.stericson.RootTools.execution.CommandCapture

public class CommandCapture
extends Command


Constructor Summary
CommandCapture(int id, boolean handlerEnabled, java.lang.String... command)
           
CommandCapture(int id, int timeout, java.lang.String... command)
           
CommandCapture(int id, java.lang.String... command)
           
 
Method Summary
 void commandCompleted(int id, int exitcode)
           
 void commandOutput(int id, java.lang.String line)
           
 void commandTerminated(int id, java.lang.String reason)
           
 java.lang.String toString()
           
 
Methods inherited from class com.stericson.RootTools.execution.Command
commandFinished, finishCommand, getCommand, getExitCode, isExecuting, isFinished, isHandlerEnabled, output, setExitCode, startExecution, terminate, terminated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandCapture

public CommandCapture(int id,
                      java.lang.String... command)

CommandCapture

public CommandCapture(int id,
                      boolean handlerEnabled,
                      java.lang.String... command)

CommandCapture

public CommandCapture(int id,
                      int timeout,
                      java.lang.String... command)
Method Detail

commandOutput

public void commandOutput(int id,
                          java.lang.String line)
Specified by:
commandOutput in class Command

commandTerminated

public void commandTerminated(int id,
                              java.lang.String reason)
Specified by:
commandTerminated in class Command

commandCompleted

public void commandCompleted(int id,
                             int exitcode)
Specified by:
commandCompleted in class Command

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object