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

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


        replyJobEvent.setProperties(submitJobEvent.getProperties());
        exchange.getIn().setBody(replyJobEvent);
      }
      if(obj instanceof CancelJobDuccEvent) {
        CancelJobDuccEvent cancelJobEvent = exchange.getIn().getBody(CancelJobDuccEvent.class);
        CancelJobReplyDuccEvent replyJobEvent = new CancelJobReplyDuccEvent();
        replyJobEvent.setProperties(cancelJobEvent.getProperties());
        exchange.getIn().setBody(replyJobEvent);
      }
      if(obj instanceof SubmitReservationDuccEvent) {
        SubmitReservationDuccEvent submitReservationEvent = exchange.getIn().getBody(SubmitReservationDuccEvent.class);
        SubmitReservationReplyDuccEvent replyReservationEvent = new SubmitReservationReplyDuccEvent();
View Full Code Here


  public boolean execute()
        throws Exception
    {

        CancelJobDuccEvent      cancelJobDuccEvent      = new CancelJobDuccEvent(jobRequestProperties);
        CancelJobReplyDuccEvent cancelJobReplyDuccEvent = null;
        try {
            cancelJobReplyDuccEvent = (CancelJobReplyDuccEvent) dispatcher.dispatchAndWaitForDuccReply(cancelJobDuccEvent);
        } catch (Exception e) {
            message("Job not submitted:", e.getMessage());
            return false;
        } finally {
            dispatcher.close();
        }
     
        /*
         * process reply
         */
      boolean rc = extractReply(cancelJobReplyDuccEvent);
       
        String dpId = cancelJobReplyDuccEvent.getProperties().getProperty(UiOption.DjPid.pname());
        if(dpId != null) {
            canceledPid = Long.parseLong(dpId);
        }
     
      responseMessage = cancelJobReplyDuccEvent.getProperties().getProperty(UiOption.Message.pname());

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

TOP

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

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.