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 void addTraced(RouteNode entry)
TracedRouteNodes
addTraced
in interface TracedRouteNodes
entry
- the entrypublic RouteNode getLastNode()
TracedRouteNodes
getLastNode
in interface TracedRouteNodes
public RouteNode getSecondLastNode()
TracedRouteNodes
getSecondLastNode
in interface TracedRouteNodes
public List<RouteNode> getNodes()
TracedRouteNodes
Exchange
has currently taken.getNodes
in interface TracedRouteNodes
public void popBlock()
TracedRouteNodes
popBlock
in interface TracedRouteNodes
public void pushBlock()
TracedRouteNodes
pushBlock
in interface TracedRouteNodes
public void clear()
TracedRouteNodes
clear
in interface TracedRouteNodes
public int getAndIncrementCounter(ProcessorDefinition<?> node)
TracedRouteNodes
getAndIncrementCounter
in interface TracedRouteNodes
node
- the intercept nodeApache Camel