camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] git commit: CAMEL-6586: Added missing JMX attributes to seda endpoint. Thanks to Zemian Deng for the patch.
Date Thu, 22 Aug 2013 13:21:08 GMT
Updated Branches:
  refs/heads/camel-2.10.x 7edc4929d -> 5654b18b5
  refs/heads/camel-2.11.x 3d2b9a89a -> ba58c25cd
  refs/heads/master 5a0697421 -> d23719f39


CAMEL-6586: Added missing JMX attributes to seda endpoint. Thanks to Zemian Deng for the patch.

Conflicts:
	camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ba58c25c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ba58c25c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ba58c25c

Branch: refs/heads/camel-2.11.x
Commit: ba58c25cda232a0cc25f6be4f2563b723c3f4c02
Parents: 3d2b9a8
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Aug 22 15:16:17 2013 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Aug 22 15:18:13 2013 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/seda/SedaEndpoint.java     | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ba58c25c/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java b/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
index 7faa956..452c88f 100644
--- a/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/component/seda/SedaEndpoint.java
@@ -370,6 +370,16 @@ public class SedaEndpoint extends DefaultEndpoint implements BrowsableEndpoint,
         return EndpointHelper.browseRangeMessagesAsXml(this, fromIndex, toIndex, includeBody);
     }
 
+    @ManagedAttribute(description = "Camel context name")
+    public String getCamelId() {
+        return getCamelContext().getName();
+    }
+
+    @ManagedAttribute(description = "Endpoint service state")
+    public String getState() {
+        return getStatus().name();
+    }
+
     void onStarted(SedaProducer producer) {
         producers.add(producer);
     }


Mime
View raw message