Package org.apache.commons.exec
Interface ExecuteResultHandler
- All Known Implementing Classes:
DefaultExecuteResultHandler
public interface ExecuteResultHandler
The callback handlers for the result of asynchronous process execution. When a
process is started asynchronously the callback provides you with the result of
the executed process, i.e. the exit value or an exception.
- Version:
- $Id: ExecuteResultHandler.java 1636056 2014-11-01 21:12:52Z ggregory $
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onProcessComplete
(int exitValue) The asynchronous execution completed.void
The asynchronous execution failed.
-
Method Details
-
onProcessComplete
The asynchronous execution completed.- Parameters:
exitValue
- the exit value of the sub-process
-
onProcessFailed
The asynchronous execution failed.- Parameters:
e
- theExecuteException
containing the root cause
-