Search in sources :

Example 6 with TracedRouteNodes

use of org.apache.camel.spi.TracedRouteNodes in project camel by apache.

the class DefaultTraceEventMessage method extractToNode.

private static String extractToNode(Exchange exchange) {
    if (exchange.getUnitOfWork() != null) {
        TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes();
        RouteNode last = traced.getLastNode();
        return last != null ? last.getLabel(exchange) : null;
    }
    return null;
}
Also used : RouteNode(org.apache.camel.RouteNode) TracedRouteNodes(org.apache.camel.spi.TracedRouteNodes)

Aggregations

TracedRouteNodes (org.apache.camel.spi.TracedRouteNodes)6 RouteNode (org.apache.camel.RouteNode)3 AsyncCallback (org.apache.camel.AsyncCallback)2 AsyncProcessor (org.apache.camel.AsyncProcessor)2 Endpoint (org.apache.camel.Endpoint)2 Exchange (org.apache.camel.Exchange)2 Processor (org.apache.camel.Processor)2 Producer (org.apache.camel.Producer)2 StopWatch (org.apache.camel.util.StopWatch)2 AtomicExchange (org.apache.camel.util.concurrent.AtomicExchange)2 CamelExchangeException (org.apache.camel.CamelExchangeException)1 DefaultRouteNode (org.apache.camel.impl.DefaultRouteNode)1 AggregateDefinition (org.apache.camel.model.AggregateDefinition)1 CatchDefinition (org.apache.camel.model.CatchDefinition)1 InterceptDefinition (org.apache.camel.model.InterceptDefinition)1 OnCompletionDefinition (org.apache.camel.model.OnCompletionDefinition)1 OnExceptionDefinition (org.apache.camel.model.OnExceptionDefinition)1