Java org.apache.commons.exec Executor fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.exec Executor fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.exec Executor.

The text is from its open source code.

Implementation

org.apache.commons.exec.Executor has the following implementations.
Click this link to see all its implementation.

Field

intINVALID_EXITVALUE
Invalid exit code.

Method

intexecute(CommandLine command)
Methods for starting synchronous execution.
intexecute(CommandLine command, Map environment)
Methods for starting synchronous execution.
voidexecute(CommandLine command, ExecuteResultHandler handler)
Methods for starting asynchronous execution.
voidexecute(CommandLine command, Map environment, ExecuteResultHandler handler)
Methods for starting asynchronous execution.
ProcessDestroyergetProcessDestroyer()
Set the handler for cleanup of started processes if the main process is going to terminate.
ExecuteWatchdoggetWatchdog()
Get the watchdog used to kill of processes running, typically, too long time.
FilegetWorkingDirectory()
Get the working directory of the created process.
booleanisFailure(final int exitValue)
Checks whether exitValue signals a failure.
voidsetExitValue(final int value)
Define the exitValue of the process to be considered successful.
voidsetExitValues(final int[] values)
Define a list of exitValue of the process to be considered successful.
voidsetProcessDestroyer(ProcessDestroyer processDestroyer)
Get the handler for cleanup of started processes if the main process is going to terminate.
voidsetStreamHandler(ExecuteStreamHandler streamHandler)
Set a custom the StreamHandler used for providing input and retrieving the output.
voidsetWatchdog(ExecuteWatchdog watchDog)
Set the watchdog used to kill of processes running, typically, too long time.
voidsetWorkingDirectory(File dir)
Set the working directory of the created process.