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 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.
-
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:IProcessResponseReturns
trueif connection with process was successfully established,falseif it have exited with error.- Specified by:
successin interfaceIProcessResponse- Returns:
trueif connection with process was successfully established,falseif it have exited with error
-
getExitCode
public int getExitCode()Description copied from interface:IProcessResponseReturns an error code with which the process has exited if it has exited with error. Otherwise throws
IllegalStateException.- Specified by:
getExitCodein interfaceIProcessResponse- Returns:
- an error code with which the process has exited
-
getProcessConnection
Description copied from interface:IProcessResponseReturns
IProcessConnectioninstanc, ornullif process has exited with error.- Specified by:
getProcessConnectionin interfaceIProcessResponse- Returns:
IProcessConnectioninstance, ornullif the process has exited with error
-