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 TypeMethodDescriptionint
Returns an error code with which the process has exited if it has exited with error.ReturnsIProcessConnection
instanc, ornull
if process has exited with error.boolean
success()
Returnstrue
if connection with process was successfully established,false
if it have exited with error.
-
Method Details
-
success
boolean success()Returns
true
if connection with process was successfully established,false
if it have exited with error.- Returns:
true
if connection with process was successfully established,false
if 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
IProcessConnection
instanc, ornull
if process has exited with error.- Returns:
IProcessConnection
instance, ornull
if the process has exited with error
-