org.apache.camel.spi
Interface TraceableUnitOfWork

All Superinterfaces:
UnitOfWork
All Known Implementing Classes:
DefaultUnitOfWork

public interface TraceableUnitOfWork
extends UnitOfWork

A Unit of work that is also traceable with the TraceInterceptor so we can trace the excact route path a given Exchange has been processed.

Version:
$Revision: 767825 $

Method Summary
 void addInterceptedNode(ProcessorDefinition node)
          Adds the given node that was intercepted
 List<ProcessorDefinition> getInterceptedNodes()
          Gets the current list of intercepted nodes, representing the route path the current Exchange has taken.
 ProcessorDefinition getLastInterceptedNode()
          Gets the last intercepted node, is null if no last exists.
 
Methods inherited from interface org.apache.camel.spi.UnitOfWork
addSynchronization, done, getId, getOriginalInBody, handoverSynchronization, removeSynchronization
 

Method Detail

addInterceptedNode

void addInterceptedNode(ProcessorDefinition node)
Adds the given node that was intercepted

Parameters:
node - the node

getLastInterceptedNode

ProcessorDefinition getLastInterceptedNode()
Gets the last intercepted node, is null if no last exists.


getInterceptedNodes

List<ProcessorDefinition> getInterceptedNodes()
Gets the current list of intercepted nodes, representing the route path the current Exchange has taken.



Copyright © 2009 Apache Software Foundation. All Rights Reserved.