com.github.dakusui.cmd
Class Command

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

public class Command
extends Object


Nested Class Summary
static class Command.Buffer
           
static class Command.Line
           
static class Command.SourceType
           
 
Constructor Summary
Command(String[] execShell, String cmd, String[] stopShell, List<CommandListener> listeners)
           
 
Method Summary
 CommandResult exec(int timeOut, String[]... stdins)
           
 int pid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Command

public Command(String[] execShell,
               String cmd,
               String[] stopShell,
               List<CommandListener> listeners)
Method Detail

pid

public int pid()

exec

public CommandResult exec(int timeOut,
                          String[]... stdins)
                   throws InterruptedException,
                          ExecutionException,
                          TimeoutException,
                          IOException
Throws:
InterruptedException
ExecutionException
TimeoutException
IOException


Copyright © 2013. All Rights Reserved.