org.apache.camel
Interface RouteNode

All Known Implementing Classes:
AggregateRouteNode, DefaultRouteNode, DoCatchRouteNode, DoFinallyRouteNode, OnCompletionRouteNode, OnExceptionRouteNode

public interface RouteNode

Represents a model of a node in the runtime route path.

Version:
$Revision: 16342 $

Method Summary
 String getLabel(Exchange exchange)
          Gets a label about this node to be used for tracing or tooling etc.
 Processor getProcessor()
          Gets the actual processor this node represents.
 ProcessorDefinition<?> getProcessorDefinition()
          Gets the model definition that represents this node
 boolean isAbstract()
          Whether this node is abstract (no real processor under the cover).
 

Method Detail

getProcessor

Processor getProcessor()
Gets the actual processor this node represents.

Returns:
the processor, can be null in special cases such as an intercepted node

getProcessorDefinition

ProcessorDefinition<?> getProcessorDefinition()
Gets the model definition that represents this node

Returns:
the definition, is newer null

getLabel

String getLabel(Exchange exchange)
Gets a label about this node to be used for tracing or tooling etc.

Parameters:
exchange - the current exchange
Returns:
a label for this node

isAbstract

boolean isAbstract()
Whether this node is abstract (no real processor under the cover).

Some nodes is abstract that represents intermediate steps for instance with onException, onCompletion or intercept

Returns:
whether this node is abstract or not


Apache CAMEL