Package org.apache.uima.ducc.transport.event

Examples of org.apache.uima.ducc.transport.event.CancelServiceReplyDuccEvent


        replyServiceEvent.setProperties(submitServiceEvent.getProperties());
        exchange.getIn().setBody(replyServiceEvent);
      }
      if(obj instanceof CancelServiceDuccEvent) {
        CancelServiceDuccEvent cancelServiceEvent = exchange.getIn().getBody(CancelServiceDuccEvent.class);
        CancelServiceReplyDuccEvent replyServiceEvent = new CancelServiceReplyDuccEvent();
        replyServiceEvent.setProperties(cancelServiceEvent.getProperties());
        exchange.getIn().setBody(replyServiceEvent);
      }
    }
View Full Code Here


  public boolean execute()
        throws Exception
    {

        CancelServiceDuccEvent      cancelServiceDuccEvent      = new CancelServiceDuccEvent(requestProperties, DuccContext.Service);
        CancelServiceReplyDuccEvent cancelServiceReplyDuccEvent = null;
        try {
            cancelServiceReplyDuccEvent = (CancelServiceReplyDuccEvent) dispatcher.dispatchAndWaitForDuccReply(cancelServiceDuccEvent);
        } catch (Exception e) {
            message("Job not submitted:", e.getMessage());
            return false;
        } finally {
            dispatcher.close();
        }
     
        /*
         * process reply
         */
      boolean rc = extractReply(cancelServiceReplyDuccEvent);             
      responseMessage = cancelServiceReplyDuccEvent.getProperties().getProperty(UiOption.Message.pname());

        // need : getResponseMessage
        //      : canceled Pids
        //      : getDuccId
      // duccMessageProcessor.out("Job"+" "+jobId+" "+msg);
View Full Code Here

     */
  public boolean execute()
        throws Exception
    {
        CancelServiceDuccEvent      cancelServiceDuccEvent      = new CancelServiceDuccEvent(requestProperties, DuccContext.ManagedReservation);
        CancelServiceReplyDuccEvent cancelServiceReplyDuccEvent = null;
        try {
            cancelServiceReplyDuccEvent = (CancelServiceReplyDuccEvent) dispatcher.dispatchAndWaitForDuccReply(cancelServiceDuccEvent);
        } catch (Exception e) {
            message("Cancel not submitted:", e.getMessage());
            return false;
        } finally {
            dispatcher.close();
        }
     
        /*
         * process reply
         */
      boolean rc = extractReply(cancelServiceReplyDuccEvent);             
      responseMessage = cancelServiceReplyDuccEvent.getProperties().getProperty(UiOption.Message.pname());

    return rc;
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.transport.event.CancelServiceReplyDuccEvent

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.