Package org.apache.uima.ducc.orchestrator.monitor

Examples of org.apache.uima.ducc.orchestrator.monitor.Xmon


  public RouteBuilder routeBuilderForEndpoint(final String endpoint, final OrchestratorEventListener delegate) {

    return new RouteBuilder() {
     
            public void configure() {
          Xmon xmStart = new Xmon(LifeStatus.Start, ExchangeType.Receive);
          Xmon xmEnded = new Xmon(LifeStatus.Ended, ExchangeType.Receive);
          Xmon xmError = new Xmon(LifeStatus.Error, ExchangeType.Receive);
              onException(Exception.class).handled(true).process(xmError);
              from(endpoint)
              .process(xmStart)
              .bean(delegate)
              .process(xmEnded)
View Full Code Here


    return new RouteBuilder() {
          public void configure() {
           
            JettyHttpComponent jettyComponent = new JettyHttpComponent();
           
      Xmon xmStart = new Xmon(LifeStatus.Start, ExchangeType.Receive);
      Xmon xmEnded = new Xmon(LifeStatus.Ended, ExchangeType.Reply);
      //ExchangeMonitor xmError = new ExchangeMonitor(LifeStatus.Error, ExchangeType.Receive);
     
            context.addComponent("jetty", jettyComponent);
            onException(Throwable.class).maximumRedeliveries(0).handled(false).process(new ErrorProcessor());
           
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.orchestrator.monitor.Xmon

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.