Search in sources :

Example 6 with DefaultRouteNode

use of org.apache.camel.impl.DefaultRouteNode in project camel by apache.

the class TraceInterceptor method traceOnException.

private void traceOnException(TracedRouteNodes traced, Exchange exchange) throws Exception {
    if (traced.getLastNode() != null) {
        traced.addTraced(new DefaultRouteNode(traced.getLastNode().getProcessorDefinition(), traced.getLastNode().getProcessor()));
    }
    traced.addTraced(new OnExceptionRouteNode());
    // log and trace so we have the from -> onException event as well
    logExchange(exchange);
    traceExchange(exchange);
    traced.addTraced(new DefaultRouteNode(node, super.getProcessor()));
}
Also used : OnExceptionRouteNode(org.apache.camel.impl.OnExceptionRouteNode) DefaultRouteNode(org.apache.camel.impl.DefaultRouteNode)

Example 7 with DefaultRouteNode

use of org.apache.camel.impl.DefaultRouteNode in project camel by apache.

the class TraceInterceptor method traceAggregate.

private void traceAggregate(TracedRouteNodes traced, Exchange exchange) {
    traced.addTraced(new AggregateRouteNode((AggregateDefinition) node.getParent()));
    traced.addTraced(new DefaultRouteNode(node, super.getProcessor()));
}
Also used : AggregateRouteNode(org.apache.camel.impl.AggregateRouteNode) AggregateDefinition(org.apache.camel.model.AggregateDefinition) DefaultRouteNode(org.apache.camel.impl.DefaultRouteNode)

Aggregations

DefaultRouteNode (org.apache.camel.impl.DefaultRouteNode)7 AggregateDefinition (org.apache.camel.model.AggregateDefinition)2 AsyncCallback (org.apache.camel.AsyncCallback)1 Processor (org.apache.camel.Processor)1 AggregateRouteNode (org.apache.camel.impl.AggregateRouteNode)1 DoCatchRouteNode (org.apache.camel.impl.DoCatchRouteNode)1 DoFinallyRouteNode (org.apache.camel.impl.DoFinallyRouteNode)1 OnCompletionRouteNode (org.apache.camel.impl.OnCompletionRouteNode)1 OnExceptionRouteNode (org.apache.camel.impl.OnExceptionRouteNode)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 CamelLogProcessor (org.apache.camel.processor.CamelLogProcessor)1 DelegateAsyncProcessor (org.apache.camel.processor.DelegateAsyncProcessor)1 TracedRouteNodes (org.apache.camel.spi.TracedRouteNodes)1