Package org.apache.uima.ducc.jd

Examples of org.apache.uima.ducc.jd.JobDriverComponent


   *
   * @throws Exception
   */
  @Bean
  public JobDriverComponent jobDriver() throws Exception {
    JobDriverComponent jdc = new JobDriverComponent(common.camelContext(), common.brokerUrl,common.jdQueuePrefix,common.localeLanguage,common.localeCountry);
        //  Instantiate delegate listener to receive incoming messages.
        JobDriverEventListener delegateListener = this.jobDriverDelegateListener(jdc);
    //  Inject a dispatcher into the listener in case it needs to send
    //  a message to another component
        delegateListener.setDuccEventDispatcher(jobDriverTransport.duccEventDispatcher(common.orchestratorStateUpdateEndpoint, jdc.getContext()));
    //  Inject Camel Router that will delegate messages to JobDriver delegate listener
    jdc.getContext().addRoutes(this.routeBuilderForIncomingRequests(common.orchestratorAbbreviatedStateUpdateEndpoint, delegateListener));
    jdc.getContext().addRoutes(this.routeBuilderForJdStatePost(jdc, common.jdStateUpdateEndpoint, Integer.parseInt(common.jdStatePublishRate)));
    return jdc;
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.jd.JobDriverComponent

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.