Package org.apache.uima.ducc.orchestrator

Examples of org.apache.uima.ducc.orchestrator.OrchestratorComponent


  }

  @Bean
  public OrchestratorComponent orchestrator() throws Exception {
    OrchestratorCommonArea.initialize(common);
    OrchestratorComponent orchestrator = new OrchestratorComponent(common.camelContext());
        //  Instantiate JobManagerEventListener delegate listener. This listener will receive
        //  incoming messages.
        OrchestratorEventListener delegateListener = this.orchestratorDelegateListener(orchestrator);
    //  Inject a dispatcher into the listener in case it needs to send
    //  a message to another component
    delegateListener.setDuccEventDispatcher(orchestratorTransport.duccEventDispatcher(common.pmRequestEndpoint, orchestrator.getContext()));
//    orchestrator.getContext().addRoutes(this.routeBuilderForReplyEndpoint(common.orchestratorRequestEndpoint, delegateListener));
    orchestrator.getContext().addRoutes(this.routeBuilder(orchestrator.getContext(), delegateListener));
    orchestrator.getContext().addRoutes(this.routeBuilderForEndpoint(common.rmStateUpdateEndpoint, delegateListener));
    orchestrator.getContext().addRoutes(this.routeBuilderForEndpoint(common.smStateUpdateEndpoint, delegateListener));
    orchestrator.getContext().addRoutes(this.routeBuilderForEndpoint(common.jdStateUpdateEndpoint,delegateListener));
    orchestrator.getContext().addRoutes(this.routeBuilderForEndpoint(common.nodeInventoryEndpoint,delegateListener));
    orchestrator.getContext().addRoutes(this.routeBuilderForOrchestratorStatePost(orchestrator, common.orchestratorStateUpdateEndpoint, Integer.parseInt(common.orchestratorStatePublishRate)));
    orchestrator.getContext().addRoutes(this.routeBuilderForOrchestratorAbbreviatedStatePost(orchestrator, common.orchestratorAbbreviatedStateUpdateEndpoint, Integer.parseInt(common.orchestratorAbbreviatedStatePublishRate)));
    return orchestrator;
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.orchestrator.OrchestratorComponent

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.