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

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


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


            requestProperties.dump();
        }
   
        requestProperties.put(UiOption.ProcessThreadCount.pname(), "1");         // enforce this - OR will complain if it's missing

        SubmitServiceDuccEvent      ev    = new SubmitServiceDuccEvent(requestProperties);
        SubmitServiceReplyDuccEvent reply = null;
       
        try {
            reply = (SubmitServiceReplyDuccEvent) dispatcher.dispatchAndWaitForDuccReply(ev);
        } catch (Exception e) {
View Full Code Here

        ServiceRequestProperties serviceProperties = (ServiceRequestProperties)serviceRequestProperties.clone();
        serviceRequestProperties.setProperty(UiOption.ProcessThreadCount.pname(), "1");
        serviceRequestProperties.setProperty(UiOption.ProcessDeploymentsMax.pname(), "1");    
        serviceRequestProperties.setProperty(UiOption.ServiceTypeOther.pname(), "");
       
        SubmitServiceDuccEvent ev = new SubmitServiceDuccEvent(serviceRequestProperties);
        SubmitServiceReplyDuccEvent reply = null;
       
        try {
            reply = (SubmitServiceReplyDuccEvent) dispatcher.dispatchAndWaitForDuccReply(ev);
        } finally {
View Full Code Here

TOP

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

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.