Package org.apache.commons.exec
The main Apache Commons Exec package.
The main classes are CommandLine and DefaultExecutor.
-
Interface Summary Interface Description ExecuteResultHandler The callback handlers for the result of asynchronous process execution.ExecuteStreamHandler Handles stream of subprocesses forExecutors.Executor The main abstraction to start an external process.ProcessDestroyer Destroys all registeredProcessafter a certain event, typically when the VM exits.TimeoutObserver Interface for classes that want to be notified by Watchdog. -
Class Summary Class Description CommandLine CommandLine objects help handling command lines specifying processes to execute.DaemonExecutor Runs daemon processes asynchronously.DaemonExecutor.Builder Constructs a new builder.DefaultExecuteResultHandler A default implementation of 'ExecuteResultHandler' used for asynchronous process handling.DefaultExecutor The default class to start a subprocess.DefaultExecutor.Builder<T extends DefaultExecutor.Builder<T>> Constructs a newDefaultExecutor.ExecuteWatchdog Destroys a process running for too long.ExecuteWatchdog.Builder Builds ExecuteWatchdog instances.InputStreamPumper Copies all data from aSystem.inputstream to an output stream of the executed process.LogOutputStream Base class to connect a logging system to the output and/or error stream of then external process.OS Condition that tests the OS type.PumpStreamHandler Copies standard output and error of sub-processes to standard output and error of the parent process.ShutdownHookProcessDestroyer Destroys all registeredProcesses when the VM exits.StreamPumper Copies all data from an input stream to an output stream.Watchdog Generalization ofExecuteWatchdog.Watchdog.Builder Builds ExecuteWatchdog instances. -
Exception Summary Exception Description ExecuteException An exception indicating that the executing a subprocesses failed.