Package org.serviceconnector.call

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


   *            the timeout milliseconds
   */
  public void echo(SCMPMessage msgToForward, ISCMPMessageCallback callback, int timeoutMillis) {
    SCMPEchoCall echoCall = new SCMPEchoCall(this.requester, msgToForward);
    try {
      echoCall.invoke(callback, (int) (this.operationTimeoutMultiplier * timeoutMillis));
    } catch (Exception e) {
      // echo failed
      callback.receive(e);
    }
  }
View Full Code Here


    // 2. initialize call & invoke
    SCMPEchoCall clnEchoCall = new SCMPEchoCall(this.requester, this.serviceName, this.sessionId);
    SCServiceCallback callback = new SCServiceCallback(true);
    try {
      PerformanceLogger.beginThreadBound();
      clnEchoCall.invoke(callback, this.echoTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    } catch (Exception e) {
      PerformanceLogger.endThreadBound(this.sessionId);
      // inactivate the session
      this.sessionActive = false;
      SCServiceException ex = new SCServiceException("Refreshing session by echo failed, service=" + this.serviceName
View Full Code Here

   *            the timeout milliseconds
   */
  public void echo(SCMPMessage msgToForward, ISCMPMessageCallback callback, int timeoutMillis) {
    SCMPEchoCall echoCall = new SCMPEchoCall(this.requester, msgToForward);
    try {
      echoCall.invoke(callback, (int) (this.operationTimeoutMultiplier * timeoutMillis));
    } catch (Exception e) {
      // echo failed
      callback.receive(e);
    }
  }
View Full Code Here

    // 2. initialize call & invoke
    SCMPEchoCall clnEchoCall = new SCMPEchoCall(this.requester, this.serviceName, this.sessionId);
    SCServiceCallback callback = new SCServiceCallback(true);
    try {
      PerformanceLogger.beginThreadBound();
      clnEchoCall.invoke(callback, this.echoTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    } catch (Exception e) {
      PerformanceLogger.endThreadBound(this.sessionId);
      // inactivate the session
      this.sessionActive = false;
      SCServiceException ex = new SCServiceException("Refreshing session by echo failed, service=" + this.serviceName
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.