com.github.dakusui.cmd
Class Command

java.lang.Object
  extended by com.github.dakusui.cmd.Command

public class Command
extends Object


Method Summary
 CommandResult exec(int timeOut)
          Executes this command in a synchronous manner.
 int pid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pid

public int pid()

exec

public CommandResult exec(int timeOut)
                   throws CommandException
Executes this command in a synchronous manner. if timeOut is set to a value less than or equal to zero, this method does never time out. Otherwise times out in timeOut milliseconds.

Parameters:
timeOut - duration
Returns:
Throws:
CommandException - The command failed during execution.


Copyright © 2016. All rights reserved.