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_INDEX, AGGREGATED_SIZE, ASYNC_WAIT, BATCH_COMPLETE, BATCH_INDEX, BATCH_SIZE, BEAN_HOLDER, BEAN_METHOD_NAME, BEAN_MULTI_PARAMETER_ARRAY, CHARSET_NAME, CONTENT_TYPE, DATASET_INDEX, EXCEPTION_CAUGHT, EXCEPTION_HANDLED, FAILURE_HANDLED, FILE_LOCAL_WORK_PATH, FILE_NAME, FILE_NAME_ONLY, FILE_NAME_PRODUCED, FILE_PARENT, FILE_PATH, FILTERED, HTTP_CHARACTER_ENCODING, HTTP_METHOD, HTTP_PATH, HTTP_QUERY, HTTP_RESPONSE_CODE, HTTP_URI, INTERCEPTED_ENDPOINT, LOG_DEBUG_BODY_MAX_CHARS, LOOP_INDEX, LOOP_SIZE, MULTICAST_INDEX, ON_COMPLETION, REDELIVERED, REDELIVERY_COUNTER, ROLLBACK_ONLY, ROUTE_STOP, SPLIT_INDEX, SPLIT_SIZE, TIMER_FIRED_TIME, TIMER_NAME, TIMER_PERIOD, TIMER_TIME, TRANSACTED |
Methods inherited from class org.apache.camel.impl.DefaultExchange |
addOnCompletion, configureMessage, copy, copyFrom, createExchangeId, createFaultMessage, createInMessage, createOutMessage, getContext, getException, getException, getExchangeId, getFault, getFault, getFromEndpoint, getIn, getOut, getOut, getProperties, getProperty, getProperty, getUnitOfWork, hasFault, hasOut, isFailed, isRollbackOnly, isTransacted, newCopy, removeFault, removeProperty, setException, setExchangeId, setFault, setFromEndpoint, setIn, setOut, setPattern, setProperties, setProperty, setUnitOfWork |
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.