|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
ExecHandle | |
ExecHandleListener | |
ExecHandleNotifierFactory | |
ExecOutputHandle |
Class Summary | |
---|---|
DefaultExecHandle | Default implementation for the ExecHandle interface. |
DefaultExecHandleNotifierFactory | |
ExecHandleAbortedNotifier | |
ExecHandleBuilder | |
ExecHandleFailedNotifier | |
ExecHandleNotifier | |
ExecHandleRunner | |
ExecHandleStartedNotifier | |
ExecHandleSucceededNotifier | |
ExecOutputHandleRunner | |
ProcessBuilderFactory | Creates a ProcessBuilder based on a ExecHandle . |
StreamWriterExecOutputHandle |
Enum Summary | |
---|---|
ExecHandleState |
Classes for running external processes.
The ExecHandle
is the class that maps to the external process and provides control
methods to start/abort or wait for the external process to terminate (normally or by a failure).
Creating an instance of ExecHandle
is done using the ExecHandleBuilder
that provides a bunch of usefull functions to set the arguments/... .
It is also possible to add listeners ExecHandleListener
to the ExecHandle
that are called
when the ExecHandle
changes from state ExecHandleState
.
In order to prevent the external process from blocking (because the output buffers are full)
the standard output and error output are fetch continuously by two Threads until the process terminates.
These Threads pass the output to an ExecOutputHandle
. The default behaviour is to pass all the output
to the standard output and error output of the parent process. By passing in other ExecOutputHandle
this
behaviour can be customized.
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |