Package org.serviceconnector.call

Examples of org.serviceconnector.call.SCMPInspectCall.invoke()


  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)) {
View Full Code Here


  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)) {
View Full Code Here

    // state of enableService
    SCMPInspectCall inspectCall = new SCMPInspectCall(this.requester);
    inspectCall.setRequestBody(Constants.CC_CMD_STATE + Constants.QUESTION_MARK + Constants.SERVICE_NAME + Constants.EQUAL_SIGN
        + TestConstants.sesServerName1);
    inspectCall.invoke(cbk, 1000);
    result = cbk.getMessageSync(3000);
    Assert.assertEquals(TestConstants.sesServerName1 + Constants.EQUAL_SIGN + "disabled", result.getBody().toString());
  }

  /**
 
View Full Code Here

  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)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.