camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulli...@apache.org
Subject svn commit: r1141899 - /camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessage.java
Date Fri, 01 Jul 2011 10:50:46 GMT
Author: cmoulliard
Date: Fri Jul  1 10:50:46 2011
New Revision: 1141899

URL: http://svn.apache.org/viewvc?rev=1141899&view=rev
Log:
camel-4168: add routeId property in DefaultTraceEventMessage

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessage.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessage.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessage.java?rev=1141899&r1=1141898&r2=1141899&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessage.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/DefaultTraceEventMessage.java
Fri Jul  1 10:50:46 2011
@@ -16,9 +16,6 @@
  */
 package org.apache.camel.processor.interceptor;
 
-import java.io.Serializable;
-import java.util.Date;
-
 import org.apache.camel.Exchange;
 import org.apache.camel.Message;
 import org.apache.camel.RouteNode;
@@ -26,6 +23,9 @@ import org.apache.camel.model.ProcessorD
 import org.apache.camel.spi.TracedRouteNodes;
 import org.apache.camel.util.MessageHelper;
 
+import java.io.Serializable;
+import java.util.Date;
+
 /**
  * Default {@link TraceEventMessage}.
  */
@@ -47,6 +47,7 @@ public final class DefaultTraceEventMess
     private String outBody;
     private String outBodyType;
     private String causedByException;
+    private String routeId;
     private final transient Exchange tracedExchange;
 
     /**
@@ -66,6 +67,7 @@ public final class DefaultTraceEventMess
         this.previousNode = extractFromNode(exchange);
         this.toNode = extractToNode(exchange);
         this.exchangeId = exchange.getExchangeId();
+        this.routeId = exchange.getFromRouteId();
         this.shortExchangeId = extractShortExchangeId(exchange);
         this.exchangePattern = exchange.getPattern().toString();
         this.properties = exchange.getProperties().isEmpty() ? null : exchange.getProperties().toString();
@@ -129,6 +131,10 @@ public final class DefaultTraceEventMess
         return exchangeId;
     }
 
+    public String getRouteId() {
+        return routeId;
+    }
+
     public String getShortExchangeId() {
         return shortExchangeId;
     }
@@ -193,6 +199,10 @@ public final class DefaultTraceEventMess
         this.exchangeId = exchangeId;
     }
 
+    public void setRouteId(String routeId) {
+        this.routeId = routeId;
+    }
+
     public void setShortExchangeId(String shortExchangeId) {
         this.shortExchangeId = shortExchangeId;
     }



Mime
View raw message