Package org.serviceconnector.call

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


    try {
      SCServiceCallback callback = new SCServiceCallback(true);
      SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, this.serviceName,
          this.sessionId);
      try {
        deleteSessionCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        // only logging the failure no further action
        LOGGER.warn("deleting file session on SC failed sid=" + sessionId + " " + e.toString());
        return;
      }
View Full Code Here


      if (scMessage != null) {
        // message might be null for deleteSession operation
        deleteSessionCall.setSessionInfo(scMessage.getSessionInfo());
      }
      try {
        deleteSessionCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Delete session failed ", e);
      }
      // 3. receiving reply and error handling
      SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
 
View Full Code Here

   */
  private void deleteSession() throws Exception {
    SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, TestConstants.sesServerName1,
        this.sessionId);
    TestCallback cbk = new TestCallback();
    deleteSessionCall.invoke(cbk, 3000);
    cbk.getMessageSync(3000);
  }

  /**
   * The Class ExecuteCallback.
View Full Code Here

      if (scMessage != null) {
        // message might be null for deleteSession operation
        deleteSessionCall.setSessionInfo(scMessage.getSessionInfo());
      }
      try {
        deleteSessionCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        throw new SCServiceException("Delete session failed ", e);
      }
      // 3. receiving reply and error handling
      SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
 
View Full Code Here

    try {
      SCServiceCallback callback = new SCServiceCallback(true);
      SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, this.serviceName,
          this.sessionId);
      try {
        deleteSessionCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
      } catch (Exception e) {
        // only logging the failure no further action
        LOGGER.warn("deleting file session on SC failed sid=" + sessionId + " " + e.toString());
        return;
      }
View Full Code Here

   */
  private void deleteSession() throws Exception {
    SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, TestConstants.sesServerName1,
        this.sessionId);
    TestCallback cbk = new TestCallback();
    deleteSessionCall.invoke(cbk, 3000);
    cbk.getMessageSync(3000);
  }

  private void checkCacheContent(String cacheId, Object body) throws Exception {
    SCMPClnExecuteCall clnExecuteCall = new SCMPClnExecuteCall(this.requester, TestConstants.sesServerName1, this.sessionId);
View Full Code Here

   */
  private void deleteSession() throws Exception {
    SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, TestConstants.sesServerName1,
        this.sessionId);
    TestCallback cbk = new TestCallback();
    deleteSessionCall.invoke(cbk, 1000);
    cbk.getMessageSync(3000);
  }
}
View Full Code Here

   */
  private void deleteSession() throws Exception {
    SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, TestConstants.sesServerName1,
        this.sessionId);
    TestCallback cbk = new TestCallback();
    deleteSessionCall.invoke(cbk, 3000);
    cbk.getMessageSync(3000);
  }

  /**
   * The Class ExecuteCallback.
View Full Code Here

   */
  private void deleteSession() throws Exception {
    SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, TestConstants.sesServerName1,
        this.sessionId);
    TestCallback cbk = new TestCallback();
    deleteSessionCall.invoke(cbk, 3000);
    cbk.getMessageSync(3000);
  }

  private void checkCacheContent(String cacheId, Object body) throws Exception {
    SCMPClnExecuteCall clnExecuteCall = new SCMPClnExecuteCall(this.requester, TestConstants.sesServerName1, this.sessionId);
View Full Code Here

    String sessId = responseMessage.getSessionId();
    TestUtil.checkReply(responseMessage);

    SCMPClnDeleteSessionCall deleteSessionCall = new SCMPClnDeleteSessionCall(this.requester, responseMessage.getServiceName(),
        sessId);
    deleteSessionCall.invoke(cbk, 2000);
    responseMessage = cbk.getMessageSync(4000);
    TestUtil.checkReply(responseMessage);
  }

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