Interface IProcessResponse
- All Known Implementing Classes:
ProcessResponceImpl
public interface IProcessResponse
Provides IProcessConnection with a separate process or it's exit code
if connection fails.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns an error code with which the process has exited if it has exited with error.ReturnsIProcessConnectioninstanc, ornullif process has exited with error.booleansuccess()Returnstrueif connection with process was successfully established,falseif it have exited with error.
-
Method Details
-
success
boolean success()Returns
trueif connection with process was successfully established,falseif it have exited with error.- Returns:
trueif connection with process was successfully established,falseif it have exited with error
-
getExitCode
int getExitCode()Returns an error code with which the process has exited if it has exited with error. Otherwise throws
IllegalStateException.- Returns:
- an error code with which the process has exited
- Throws:
IllegalStateException- if connection with process was successfully established
-
getProcessConnection
IProcessConnection getProcessConnection()Returns
IProcessConnectioninstanc, ornullif process has exited with error.- Returns:
IProcessConnectioninstance, ornullif the process has exited with error
-