org.apache.camel.processor.interceptor
Class TraceEventExchange
java.lang.Object
org.apache.camel.impl.DefaultExchange
org.apache.camel.processor.interceptor.TraceEventExchange
- All Implemented Interfaces:
- Exchange
public class TraceEventExchange
- extends DefaultExchange
Represents a trace of an Exchange
, intercepted at the given node
that occured during routing.
The IN body contains DefaultTraceEventMessage
with trace details of the original IN message.
Fields inherited from interface org.apache.camel.Exchange |
AGGREGATED_SIZE, BEAN_HOLDER, BEAN_METHOD_NAME, BEAN_MULTI_PARAMETER_ARRAY, CHARSET_NAME, DATASET_INDEX, EXCEPTION_CAUGHT, EXCEPTION_HANDLED, FAILURE_HANDLED, FILE_BATCH_INDEX, FILE_BATCH_SIZE, FILE_LOCAL_WORK_PATH, FILE_NAME, FILE_NAME_ONLY, FILE_NAME_PRODUCED, LOOP_INDEX, LOOP_SIZE, PROCESSED_SYNC, REDELIVERED, REDELIVERY_COUNTER, SPLIT_INDEX, SPLIT_SIZE, TIMER_FIRED_TIME, TIMER_NAME, TIMER_PERIOD, TIMER_TIME, TRANSACTED |
Methods inherited from class org.apache.camel.impl.DefaultExchange |
configureMessage, copy, copyFrom, createExchangeId, createFaultMessage, createInMessage, createOutMessage, getContext, getException, getExchangeId, getFault, getFault, getFromEndpoint, getIn, getOut, getOut, getProperties, getProperty, getProperty, getUnitOfWork, isFailed, isTransacted, removeProperty, setException, setExchangeId, setFault, setFromEndpoint, setIn, setOut, setPattern, setProperties, setProperty, setUnitOfWork, throwException |
TraceEventExchange
public TraceEventExchange(Exchange parent)
newInstance
public Exchange newInstance()
- Description copied from interface:
Exchange
- Creates a new exchange instance with empty messages, headers and properties
- Specified by:
newInstance
in interface Exchange
- Overrides:
newInstance
in class DefaultExchange
getNodeId
public String getNodeId()
- Get the id of the node of the trace interception
getTimestamp
public Date getTimestamp()
- Timestamp of the interception
setNodeId
public void setNodeId(String nodeId)
setTimestamp
public void setTimestamp(Date timestamp)
getTracedExchange
public Exchange getTracedExchange()
setTracedExchange
public void setTracedExchange(Exchange tracedExchange)
getPattern
public ExchangePattern getPattern()
- Description copied from interface:
Exchange
- Returns the
ExchangePattern
(MEP) of this exchange.
- Specified by:
getPattern
in interface Exchange
- Overrides:
getPattern
in class DefaultExchange
- Returns:
- the message exchange pattern of this exchange
toString
public String toString()
- Overrides:
toString
in class DefaultExchange
Copyright © 2009 Apache Software Foundation. All Rights Reserved.