Package org.apache.uima.ducc.sm.event

Examples of org.apache.uima.ducc.sm.event.ServiceManagerEventListener


   *
   * @param sm - {@link ServiceManagerComponent} instance
   * @return - {@link ServiceManagerEventListener}
   */
  public ServiceManagerEventListener serviceManagerDelegateListener(ServiceManagerComponent sm) {
    ServiceManagerEventListener smel =  new ServiceManagerEventListener(sm);
    //smel.setEndpoint(common.jmStateUpdateEndpoint);
    smel.setEndpoint(common.pmRequestEndpoint);
    return smel;
  }
View Full Code Here


   */
  @Bean
  public ServiceManagerComponent serviceManager() throws Exception {
    ServiceManagerComponent sm = new ServiceManagerComponent(common.camelContext());
        //  Instantiate delegate listener to receive incoming messages.
        ServiceManagerEventListener delegateListener = this.serviceManagerDelegateListener(sm);
    //  Inject a dispatcher into the listener in case it needs to send
    //  a message to another component
        // delegateListener.setDuccEventDispatcher(serviceManagerTransport.duccEventDispatcher(common.orchestratorStateUpdateEndpoint, sm.getContext()));

        // Set context so SM can send state when it wants to (not on timer)
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.sm.event.ServiceManagerEventListener

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.