org.mmbase.util.externalprocess
Class CommandExecutor

java.lang.Object
  extended by org.mmbase.util.externalprocess.CommandExecutor

public class CommandExecutor
extends Object

The command executor provides a way to perform external commands. Using either CommandLauncher or a connection to a CommandServer.

Since:
MMBase-1.9.1
Version:
$Id: $
Author:
Michiel Meeuwissen

Nested Class Summary
static class CommandExecutor.Copier
           
static class CommandExecutor.Method
           
static class CommandExecutor.Type
           
 
Constructor Summary
CommandExecutor()
           
 
Method Summary
static void execute(OutputStream outputStream, CommandExecutor.Method method, String command, String... args)
           
static void execute(OutputStream outputStream, OutputStream errorStream, CommandExecutor.Method method, String command, String... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandExecutor

public CommandExecutor()
Method Detail

execute

public static void execute(OutputStream outputStream,
                           CommandExecutor.Method method,
                           String command,
                           String... args)
                    throws ProcessException,
                           InterruptedException
Throws:
ProcessException
InterruptedException

execute

public static void execute(OutputStream outputStream,
                           OutputStream errorStream,
                           CommandExecutor.Method method,
                           String command,
                           String... args)
                    throws ProcessException,
                           InterruptedException
Throws:
ProcessException
InterruptedException


MMBase 2.0-SNAPSHOT - null