Class ProcessResponceImpl
java.lang.Object
com._1c.g5.v8.dt.internal.pm.wrappers.ProcessResponceImpl
- All Implemented Interfaces:
IProcessResponse
Implementation of
IProcessResponse
.-
Constructor Summary
ConstructorsConstructorDescriptionProcessResponceImpl
(int exitCode) Creates new response for process which has exited with given code.ProcessResponceImpl
(IProcessConnection processConnection) Creates new response for process which has successfully registered givenIProcessConnection
. -
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.
-
Constructor Details
-
ProcessResponceImpl
Creates new response for process which has successfully registered givenIProcessConnection
.- Parameters:
processConnection
- givenIProcessConnection
(notnull
)
-
ProcessResponceImpl
public ProcessResponceImpl(int exitCode) Creates new response for process which has exited with given code.- Parameters:
exitCode
- given exit code
-
-
Method Details
-
success
public boolean success()Description copied from interface:IProcessResponse
Returns
true
if connection with process was successfully established,false
if it have exited with error.- Specified by:
success
in interfaceIProcessResponse
- Returns:
true
if connection with process was successfully established,false
if it have exited with error
-
getExitCode
public int getExitCode()Description copied from interface:IProcessResponse
Returns an error code with which the process has exited if it has exited with error. Otherwise throws
IllegalStateException
.- Specified by:
getExitCode
in interfaceIProcessResponse
- Returns:
- an error code with which the process has exited
-
getProcessConnection
Description copied from interface:IProcessResponse
Returns
IProcessConnection
instanc, ornull
if process has exited with error.- Specified by:
getProcessConnection
in interfaceIProcessResponse
- Returns:
IProcessConnection
instance, ornull
if the process has exited with error
-