Package org.apache.commons.exec
Interface ExecuteResultHandler
- 
- All Known Implementing Classes:
 DefaultExecuteResultHandler
public interface ExecuteResultHandlerThe 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. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonProcessComplete(int exitValue)The asynchronous execution completed.voidonProcessFailed(ExecuteException e)The asynchronous execution failed. 
 - 
 
- 
- 
Method Detail
- 
onProcessComplete
void onProcessComplete(int exitValue)
The asynchronous execution completed.- Parameters:
 exitValue- the exit value of the sub-process
 
- 
onProcessFailed
void onProcessFailed(ExecuteException e)
The asynchronous execution failed.- Parameters:
 e- theExecuteExceptioncontaining the root cause
 
 - 
 
 -