Examples of WebServerEventListener


Examples of org.apache.uima.ducc.ws.event.WebServerEventListener

   *
   * @param ws - {@link WebServerComponent} instance
   * @return - {@link WebServerEventListener}
   */
  public WebServerEventListener webServerDelegateListener(WebServerComponent ws) {
    WebServerEventListener wsel =  new WebServerEventListener(ws);
    return wsel;
  }
View Full Code Here

Examples of org.apache.uima.ducc.ws.event.WebServerEventListener

    WebServerComponent ws = null;
    try {
      ws = new WebServerComponent(common.camelContext(), common);
      DuccBoot.boot(common);
      //  Instantiate delegate listener to receive incoming messages.
      WebServerEventListener delegateListener = this.webServerDelegateListener(ws);
      //  Inject a dispatcher into the listener in case it needs to send
      //  a message to another component
      delegateListener.setDuccEventDispatcher(webServerTransport.duccEventDispatcher(common.orchestratorStateUpdateEndpoint, ws.getContext()));
      //  Inject Camel Router that will delegate messages to WebServer delegate listener
      ws.getContext().addRoutes(this.routeBuilderForIncomingRequests(common.orchestratorStateUpdateEndpoint, delegateListener));
      ws.getContext().addRoutes(this.routeBuilderForIncomingRequests(common.nodeMetricsEndpoint, delegateListener));
      ws.getContext().addRoutes(this.routeBuilderForIncomingRequests(common.rmStateUpdateEndpoint, delegateListener));
      ws.getContext().addRoutes(this.routeBuilderForIncomingRequests(common.smStateUpdateEndpoint, delegateListener));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.