Package org.serviceconnector.call

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


    this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
    // 2. initialize call & invoke
    SCServiceCallback callback = new SCServiceCallback(true);
    SCMPFileListCall fileListCall = new SCMPFileListCall(this.requester, this.serviceName);
    try {
      fileListCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    } catch (Exception e) {
      throw new SCServiceException("List files failed. ", e);
    }
    // 3. receiving reply and error handling
    SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
 
View Full Code Here


   */
  public void serverGetFileList(SCMPMessage msgToForward, CommandCascCallback callback, int timeoutMillis) {
    SCMPFileListCall fileListCall = new SCMPFileListCall(this.requester, msgToForward);

    try {
      fileListCall.invoke(callback, (int) (this.operationTimeoutMultiplier * timeoutMillis));
    } catch (Exception e) {
      // echo failed
      callback.receive(e);
    }
  }
View Full Code Here

    this.requester.getSCMPMsgSequenceNr().incrementAndGetMsgSequenceNr();
    // 2. initialize call & invoke
    SCServiceCallback callback = new SCServiceCallback(true);
    SCMPFileListCall fileListCall = new SCMPFileListCall(this.requester, this.serviceName);
    try {
      fileListCall.invoke(callback, operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
    } catch (Exception e) {
      throw new SCServiceException("List files failed. ", e);
    }
    // 3. receiving reply and error handling
    SCMPMessage reply = callback.getMessageSync(operationTimeoutSeconds * Constants.SEC_TO_MILLISEC_FACTOR);
 
View Full Code Here

   */
  public void serverGetFileList(SCMPMessage msgToForward, CommandCascCallback callback, int timeoutMillis) {
    SCMPFileListCall fileListCall = new SCMPFileListCall(this.requester, msgToForward);

    try {
      fileListCall.invoke(callback, (int) (this.operationTimeoutMultiplier * timeoutMillis));
    } catch (Exception e) {
      // echo failed
      callback.receive(e);
    }
  }
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.