public class DefaultTracedRouteNodes extends Object implements TracedRouteNodes
| Constructor and Description |
|---|
DefaultTracedRouteNodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTraced(RouteNode entry)
Adds the entry that was intercepted
|
void |
clear()
Clears all traced information
|
int |
getAndIncrementCounter(ProcessorDefinition<?> node)
A private counter that increments, is used to as book keeping how far this
exchange have been intercepted by the general intercept().
|
RouteNode |
getLastNode()
Gets the last node, is null if no last exists.
|
List<RouteNode> |
getNodes()
Gets the current list of nodes, representing the route path the
current
Exchange has currently taken. |
RouteNode |
getSecondLastNode()
Gets the 2nd last node, is null if no last exists.
|
void |
popBlock()
Pops the last block from tracing.
|
void |
pushBlock()
Prepares a new block for tracing.
|
public DefaultTracedRouteNodes()
public void addTraced(RouteNode entry)
TracedRouteNodesaddTraced in interface TracedRouteNodesentry - the entrypublic RouteNode getLastNode()
TracedRouteNodesgetLastNode in interface TracedRouteNodespublic RouteNode getSecondLastNode()
TracedRouteNodesgetSecondLastNode in interface TracedRouteNodespublic List<RouteNode> getNodes()
TracedRouteNodesExchange has currently taken.getNodes in interface TracedRouteNodespublic void popBlock()
TracedRouteNodespopBlock in interface TracedRouteNodespublic void pushBlock()
TracedRouteNodespushBlock in interface TracedRouteNodespublic void clear()
TracedRouteNodesclear in interface TracedRouteNodespublic int getAndIncrementCounter(ProcessorDefinition<?> node)
TracedRouteNodesgetAndIncrementCounter in interface TracedRouteNodesnode - the intercept nodeApache Camel