Package org.apache.commons.exec
Class DaemonExecutor
java.lang.Object
org.apache.commons.exec.DefaultExecutor
org.apache.commons.exec.DaemonExecutor
- All Implemented Interfaces:
- Executor
Runs daemon processes asynchronously. Callers are expected to register a 
ProcessDestroyer before executing any processes.- Since:
- 1.3
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from interface org.apache.commons.exec.ExecutorINVALID_EXITVALUE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic DaemonExecutor.Builderbuilder()Creates a new builder.protected ThreadcreateThread(Runnable runnable, String name) Factory method to create a thread waiting for the result of an asynchronous execution.Methods inherited from class org.apache.commons.exec.DefaultExecutorexecute, execute, execute, execute, getExecutorThread, getProcessDestroyer, getStreamHandler, getWatchdog, getWorkingDirectory, isFailure, launch, launch, setExitValue, setExitValues, setProcessDestroyer, setStreamHandler, setWatchdog, setWorkingDirectoryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.exec.ExecutorgetWorkingDirectoryPath
- 
Constructor Details- 
DaemonExecutorDeprecated.Constructs a new instance.
 
- 
- 
Method Details- 
builderCreates a new builder.- Returns:
- a new builder.
- Since:
- 1.4.0
 
- 
createThreadFactory method to create a thread waiting for the result of an asynchronous execution.- Overrides:
- createThreadin class- DefaultExecutor
- Parameters:
- runnable- the runnable passed to the thread.
- name- the name of the thread.
- Returns:
- the thread.
 
 
- 
DaemonExecutor.Builder.get().