org.apache.camel.processor.interceptor.jpa
Class JpaTraceEventMessage

java.lang.Object
  extended by org.apache.camel.processor.interceptor.jpa.JpaTraceEventMessage
All Implemented Interfaces:
TraceEventMessage

public class JpaTraceEventMessage
extends Object
implements TraceEventMessage

A JPA based TraceEventMessage that is capable of persisting trace event into a database.


Field Summary
protected  String body
           
protected  String bodyType
           
protected  String causedByException
           
protected  String exchangeId
           
protected  String exchangePattern
           
protected  String fromEndpointUri
           
protected  String headers
           
protected  Long id
           
protected  String outBody
           
protected  String outBodyType
           
protected  String outHeaders
           
protected  String previousNode
           
protected  String properties
           
protected  String shortExchangeId
           
protected  Date timestamp
           
protected  String toNode
           
 
Constructor Summary
JpaTraceEventMessage()
           
 
Method Summary
 String getBody()
           
 String getBodyType()
           
 String getCausedByException()
          Gets the caused by exception (ie Exchange#getException().
 String getExchangeId()
           
 String getExchangePattern()
           
 String getFromEndpointUri()
          Uri of the endpoint that started the Exchange currently being traced.
 String getHeaders()
           
 Long getId()
           
 String getOutBody()
           
 String getOutBodyType()
           
 String getOutHeaders()
           
 String getPreviousNode()
          Gets the previous node.
 String getProperties()
           
 String getShortExchangeId()
          Gets the exchange id without the leading hostname
 Date getTimestamp()
          Gets the timestamp when the interception occurred
 String getToNode()
          Gets the current node that just have been intercepted and processed

Is never null.

 Exchange getTracedExchange()
          Gets the traced Exchange.
 void setBody(String body)
           
 void setBodyType(String bodyType)
           
 void setCausedByException(String causedByException)
           
 void setExchangeId(String exchangeId)
           
 void setExchangePattern(String exchangePattern)
           
 void setFromEndpointUri(String fromEndpointUri)
           
 void setHeaders(String headers)
           
 void setId(Long id)
           
 void setOutBody(String outBody)
           
 void setOutBodyType(String outBodyType)
           
 void setOutHeaders(String outHeaders)
           
 void setPreviousNode(String previousNode)
           
 void setProperties(String properties)
           
 void setShortExchangeId(String shortExchangeId)
           
 void setTimestamp(Date timestamp)
           
 void setToNode(String toNode)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected Long id

timestamp

protected Date timestamp

fromEndpointUri

protected String fromEndpointUri

previousNode

protected String previousNode

toNode

protected String toNode

exchangeId

protected String exchangeId

shortExchangeId

protected String shortExchangeId

exchangePattern

protected String exchangePattern

properties

protected String properties

headers

protected String headers

body

protected String body

bodyType

protected String bodyType

outHeaders

protected String outHeaders

outBody

protected String outBody

outBodyType

protected String outBodyType

causedByException

protected String causedByException
Constructor Detail

JpaTraceEventMessage

public JpaTraceEventMessage()
Method Detail

getId

public Long getId()

setId

public void setId(Long id)

getTimestamp

public Date getTimestamp()
Description copied from interface: TraceEventMessage
Gets the timestamp when the interception occurred

Specified by:
getTimestamp in interface TraceEventMessage

setTimestamp

public void setTimestamp(Date timestamp)

getPreviousNode

public String getPreviousNode()
Description copied from interface: TraceEventMessage
Gets the previous node.

Will return null if this is the first node, then you can use the from endpoint uri instead to indicate the start

Specified by:
getPreviousNode in interface TraceEventMessage

setPreviousNode

public void setPreviousNode(String previousNode)

getFromEndpointUri

public String getFromEndpointUri()
Description copied from interface: TraceEventMessage
Uri of the endpoint that started the Exchange currently being traced.

Specified by:
getFromEndpointUri in interface TraceEventMessage

setFromEndpointUri

public void setFromEndpointUri(String fromEndpointUri)

getToNode

public String getToNode()
Description copied from interface: TraceEventMessage
Gets the current node that just have been intercepted and processed

Is never null.

Specified by:
getToNode in interface TraceEventMessage

setToNode

public void setToNode(String toNode)

getExchangeId

public String getExchangeId()
Specified by:
getExchangeId in interface TraceEventMessage

setExchangeId

public void setExchangeId(String exchangeId)

getShortExchangeId

public String getShortExchangeId()
Description copied from interface: TraceEventMessage
Gets the exchange id without the leading hostname

Specified by:
getShortExchangeId in interface TraceEventMessage

setShortExchangeId

public void setShortExchangeId(String shortExchangeId)

getExchangePattern

public String getExchangePattern()
Specified by:
getExchangePattern in interface TraceEventMessage

setExchangePattern

public void setExchangePattern(String exchangePattern)

getProperties

public String getProperties()
Specified by:
getProperties in interface TraceEventMessage

setProperties

public void setProperties(String properties)

getHeaders

public String getHeaders()
Specified by:
getHeaders in interface TraceEventMessage

setHeaders

public void setHeaders(String headers)

getBody

public String getBody()
Specified by:
getBody in interface TraceEventMessage

setBody

public void setBody(String body)

getBodyType

public String getBodyType()
Specified by:
getBodyType in interface TraceEventMessage

setBodyType

public void setBodyType(String bodyType)

getOutBody

public String getOutBody()
Specified by:
getOutBody in interface TraceEventMessage

setOutBody

public void setOutBody(String outBody)

getOutBodyType

public String getOutBodyType()
Specified by:
getOutBodyType in interface TraceEventMessage

setOutBodyType

public void setOutBodyType(String outBodyType)

getOutHeaders

public String getOutHeaders()

setOutHeaders

public void setOutHeaders(String outHeaders)

getCausedByException

public String getCausedByException()
Description copied from interface: TraceEventMessage
Gets the caused by exception (ie Exchange#getException().

Specified by:
getCausedByException in interface TraceEventMessage

setCausedByException

public void setCausedByException(String causedByException)

getTracedExchange

public Exchange getTracedExchange()
Description copied from interface: TraceEventMessage
Gets the traced Exchange.

Not all implementations may provide direct access to the traced Exchange and thus this method may return null. For example the JPA implementation will return null.

Specified by:
getTracedExchange in interface TraceEventMessage
Returns:
the traced Exchange, however it can be null in some implementations.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.