Package org.apache.camel

Examples of org.apache.camel.RouteNode


    }

    private static String extractFromNode(Exchange exchange) {
        if (exchange.getUnitOfWork() != null) {
            TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes();
            RouteNode last = traced.getSecondLastNode();
            return last != null ? last.getLabel(exchange) : null;
        }
        return null;
    }
View Full Code Here


    }

    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;
    }
View Full Code Here

        String to = "";
        String route = "";
        if (showNode || showRouteId) {
            TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes();

            RouteNode traceFrom = traced.getSecondLastNode();
            if (traceFrom != null) {
                from = getNodeMessage(traceFrom, exchange);
            } else if (exchange.getFromEndpoint() != null) {
                from = "from(" + exchange.getFromEndpoint().getEndpointUri() + ")";
            }

            RouteNode traceTo = traced.getLastNode();
            if (traceTo != null) {
                to = getNodeMessage(traceTo, exchange);
                // if its an abstract dummy holder then we have to get the 2nd last so we can get the real node that has
                // information which route it belongs to
                if (traceTo.isAbstract() && traceTo.getProcessorDefinition() == null) {
                    traceTo = traced.getSecondLastNode();
                }
                if (traceTo != null) {
                    route = extractRoute(traceTo.getProcessorDefinition());
                }
            }
        }

        // assemble result with and without the to/from
View Full Code Here

        }
    }

    public void pushBlock() {
        // push a new block and add the last node as starting point
        RouteNode last = getLastNode();
        routeNodes.push(new ArrayList<RouteNode>());
        if (last != null) {
            addTraced(last);
        }
    }
View Full Code Here

    }

    private static String extractFromNode(Exchange exchange) {
        if (exchange.getUnitOfWork() instanceof TraceableUnitOfWork) {
            TraceableUnitOfWork tuow = (TraceableUnitOfWork) exchange.getUnitOfWork();
            RouteNode last = tuow.getSecondLastNode();
            return last != null ? last.getLabel(exchange) : null;
        }
        return null;
    }
View Full Code Here

    }

    private static String extractToNode(Exchange exchange) {
        if (exchange.getUnitOfWork() instanceof TraceableUnitOfWork) {
            TraceableUnitOfWork tuow = (TraceableUnitOfWork) exchange.getUnitOfWork();
            RouteNode last = tuow.getLastNode();
            return last != null ? last.getLabel(exchange) : null;
        }
        return null;
    }
View Full Code Here

        String from = "";
        String to = "";
        if (showNode && exchange.getUnitOfWork() instanceof TraceableUnitOfWork) {
            TraceableUnitOfWork tuow = (TraceableUnitOfWork) exchange.getUnitOfWork();

            RouteNode traceFrom = tuow.getSecondLastNode();
            if (traceFrom != null) {
                from = getNodeMessage(traceFrom, exchange);
            } else if (exchange.getFromEndpoint() != null) {
                from = "from(" + exchange.getFromEndpoint().getEndpointUri() + ")";
            }

            RouteNode traceTo = tuow.getLastNode();
            if (traceTo != null) {
                to = getNodeMessage(traceTo, exchange);
            }
        }
View Full Code Here

    }

    private static String extractFromNode(Exchange exchange) {
        if (exchange.getUnitOfWork() != null) {
            TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes();
            RouteNode last = traced.getSecondLastNode();
            return last != null ? last.getLabel(exchange) : null;
        }
        return null;
    }
View Full Code Here

    }

    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;
    }
View Full Code Here

    }

    private static String extractFromNode(Exchange exchange) {
        if (exchange.getUnitOfWork() != null) {
            TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes();
            RouteNode last = traced.getSecondLastNode();
            return last != null ? last.getLabel(exchange) : null;
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.RouteNode

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.