Package org.serviceconnector.call

Examples of org.serviceconnector.call.SCMPInspectCall


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


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

    manageCall.invoke(cbk, 1000);
    SCMPMessage result = cbk.getMessageSync(3000);
    TestUtil.checkReply(result);

    // 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

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

TOP

Related Classes of org.serviceconnector.call.SCMPInspectCall

Copyright © 2018 www.massapicom. 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.