* @throws SCServiceException
* the inspect call to SC failed<br />
* error message received from SC<br />
*/
private String inspectCall(int operationTimeoutSeconds, String instruction) throws SCServiceException {
SCMPInspectCall inspectCall = new SCMPInspectCall(this.requester);
SCServiceCallback callback = new SCServiceCallback(true);
try {
inspectCall.setRequestBody(instruction);
inspectCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
} catch (Exception e) {
this.requester.destroy();
throw new SCServiceException("Inspect request failed. ", e);
}
if (instruction.equalsIgnoreCase(Constants.CC_CMD_KILL)) {