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

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


    }
   
    public void process(Exchange exchange) throws Exception {
      Object obj = exchange.getIn().getBody();
      if(obj instanceof SubmitJobDuccEvent) {
        SubmitJobDuccEvent submitJobEvent = exchange.getIn().getBody(SubmitJobDuccEvent.class);
        SubmitJobReplyDuccEvent replyJobEvent = new SubmitJobReplyDuccEvent();
        replyJobEvent.setProperties(submitJobEvent.getProperties());
        exchange.getIn().setBody(replyJobEvent);
      }
      if(obj instanceof CancelJobDuccEvent) {
        CancelJobDuccEvent cancelJobEvent = exchange.getIn().getBody(CancelJobDuccEvent.class);
        CancelJobReplyDuccEvent replyJobEvent = new CancelJobReplyDuccEvent();
View Full Code Here


  }
  public static void main(String[] args) {
    try {
      DuccEventHttpDispatcher dispatcher =
              new DuccEventHttpDispatcher("http://"+args[0]+":19988/or",1000*4);
      SubmitJobDuccEvent duccEvent = new SubmitJobDuccEvent(null);
      DuccEvent event = dispatcher.dispatchAndWaitForDuccReply(duccEvent);
      if ( event instanceof SubmitJobReplyDuccEvent ) {
        System.out.println("Client received SubmitJobReplyDuccEvent");
      }
    } catch( Exception e) {
View Full Code Here

         */
        if ( ! check_service_dependencies(null) ) {
            return false;
        }

        SubmitJobDuccEvent      submitJobDuccEvent      = new SubmitJobDuccEvent(jobRequestProperties);
        SubmitJobReplyDuccEvent submitJobReplyDuccEvent = null;
        try {
            submitJobReplyDuccEvent = (SubmitJobReplyDuccEvent) dispatcher.dispatchAndWaitForDuccReply(submitJobDuccEvent);
        } catch (Exception e) {
            message("Job not submitted: " + e.getMessage());
View Full Code Here

TOP

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

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.