Updated Branches:
  refs/heads/master 20e5435e3 -> 2d686b4ae

CAMEL-6549: Renamed interface for backlog tracer in jmx api.


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

Branch: refs/heads/master
Commit: 2d686b4ae9096165dd3b547ff92d018188d3efb5
Parents: 20e5435
Author: Claus Ibsen <davscl...@apache.org>
Authored: Tue Jul 16 08:45:16 2013 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Tue Jul 16 08:45:16 2013 +0200

----------------------------------------------------------------------
 .../mbean/ManagedBacklogTracerMBean.java        | 95 ++++++++++++++++++++
 .../mbean/ManagedTracerBacklogMBean.java        | 95 --------------------
 .../management/mbean/ManagedBacklogTracer.java  |  4 +-
 3 files changed, 97 insertions(+), 97 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2d686b4a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedBacklogTracerMBean.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedBacklogTracerMBean.java
 
b/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedBacklogTracerMBean.java
new file mode 100644
index 0000000..154fbbf
--- /dev/null
+++ 
b/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedBacklogTracerMBean.java
@@ -0,0 +1,95 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.api.management.mbean;
+
+import java.util.List;
+
+import org.apache.camel.api.management.ManagedAttribute;
+import org.apache.camel.api.management.ManagedOperation;
+
+public interface ManagedBacklogTracerMBean {
+
+    @ManagedAttribute(description = "Is tracing enabled")
+    boolean isEnabled();
+
+    @ManagedAttribute(description = "Is tracing enabled")
+    void setEnabled(boolean enabled);
+
+    @ManagedAttribute(description = "Number of maximum traced messages in 
total to keep in the backlog (FIFO queue)")
+    int getBacklogSize();
+
+    @ManagedAttribute(description = "Number of maximum traced messages in 
total to keep in the backlog (FIFO queue)")
+    void setBacklogSize(int backlogSize);
+
+    @ManagedAttribute(description = "Whether to remove traced message from 
backlog when dumping trace messages")
+    boolean isRemoveOnDump();
+
+    @ManagedAttribute(description = "Whether to remove traced message from 
backlog when dumping trace messages")
+    void setRemoveOnDump(boolean removeOnDump);
+
+    @ManagedAttribute(description = "To filter tracing by nodes (pattern)")
+    void setTracePattern(String pattern);
+
+    @ManagedAttribute(description = "To filter tracing by nodes (pattern)")
+    String getTracePattern();
+
+    @ManagedAttribute(description = "To filter tracing by predicate (uses 
simple language by default)")
+    void setTraceFilter(String predicate);
+
+    @ManagedAttribute(description = "To filter tracing by predicate (uses 
simple language by default)")
+    String getTraceFilter();
+
+    @ManagedAttribute(description = "Number of total traced messages")
+    long getTraceCounter();
+
+    @ManagedOperation(description = "Resets the trace counter")
+    void resetTraceCounter();
+
+    @ManagedAttribute(description = "Number of maximum chars in the message 
body in the trace message. Use zero or negative value to have unlimited size.")
+    int getBodyMaxChars();
+
+    @ManagedAttribute(description = "Number of maximum chars in the message 
body in the trace message. Use zero or negative value to have unlimited size.")
+    void setBodyMaxChars(int bodyMaxChars);
+
+    @ManagedAttribute(description = "Whether to include stream based message 
body in the trace message.")
+    boolean isBodyIncludeStreams();
+
+    @ManagedAttribute(description = "Whether to include stream based message 
body in the trace message.")
+    void setBodyIncludeStreams(boolean bodyIncludeStreams);
+
+    @ManagedAttribute(description = "Whether to include file based message 
body in the trace message.")
+    boolean isBodyIncludeFiles();
+
+    @ManagedAttribute(description = "Whether to include file based message 
body in the trace message.")
+    void setBodyIncludeFiles(boolean bodyIncludeFiles);
+
+    @ManagedOperation(description = "Dumps the traced messages for the given 
node or route")
+    List<BacklogTracerEventMessage> dumpTracedMessages(String nodeOrRouteId);
+
+    @ManagedOperation(description = "Dumps the traced messages for the given 
node or route in xml format")
+    String dumpTracedMessagesAsXml(String nodeOrRouteId);
+
+    @ManagedOperation(description = "Dumps all the traced messages")
+    List<BacklogTracerEventMessage> dumpAllTracedMessages();
+
+    @ManagedOperation(description = "Dumps all the traced messages in xml 
format")
+    String dumpAllTracedMessagesAsXml();
+
+    @ManagedOperation(description = "Clears the backlog")
+    void clear();
+
+}

http://git-wip-us.apache.org/repos/asf/camel/blob/2d686b4a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedTracerBacklogMBean.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedTracerBacklogMBean.java
 
b/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedTracerBacklogMBean.java
deleted file mode 100644
index 32aac32..0000000
--- 
a/camel-core/src/main/java/org/apache/camel/api/management/mbean/ManagedTracerBacklogMBean.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.api.management.mbean;
-
-import java.util.List;
-
-import org.apache.camel.api.management.ManagedAttribute;
-import org.apache.camel.api.management.ManagedOperation;
-
-public interface ManagedTracerBacklogMBean {
-
-    @ManagedAttribute(description = "Is tracing enabled")
-    boolean isEnabled();
-
-    @ManagedAttribute(description = "Is tracing enabled")
-    void setEnabled(boolean enabled);
-
-    @ManagedAttribute(description = "Number of maximum traced messages in 
total to keep in the backlog (FIFO queue)")
-    int getBacklogSize();
-
-    @ManagedAttribute(description = "Number of maximum traced messages in 
total to keep in the backlog (FIFO queue)")
-    void setBacklogSize(int backlogSize);
-
-    @ManagedAttribute(description = "Whether to remove traced message from 
backlog when dumping trace messages")
-    boolean isRemoveOnDump();
-
-    @ManagedAttribute(description = "Whether to remove traced message from 
backlog when dumping trace messages")
-    void setRemoveOnDump(boolean removeOnDump);
-
-    @ManagedAttribute(description = "To filter tracing by nodes (pattern)")
-    void setTracePattern(String pattern);
-
-    @ManagedAttribute(description = "To filter tracing by nodes (pattern)")
-    String getTracePattern();
-
-    @ManagedAttribute(description = "To filter tracing by predicate (uses 
simple language by default)")
-    void setTraceFilter(String predicate);
-
-    @ManagedAttribute(description = "To filter tracing by predicate (uses 
simple language by default)")
-    String getTraceFilter();
-
-    @ManagedAttribute(description = "Number of total traced messages")
-    long getTraceCounter();
-
-    @ManagedOperation(description = "Resets the trace counter")
-    void resetTraceCounter();
-
-    @ManagedAttribute(description = "Number of maximum chars in the message 
body in the trace message. Use zero or negative value to have unlimited size.")
-    int getBodyMaxChars();
-
-    @ManagedAttribute(description = "Number of maximum chars in the message 
body in the trace message. Use zero or negative value to have unlimited size.")
-    void setBodyMaxChars(int bodyMaxChars);
-
-    @ManagedAttribute(description = "Whether to include stream based message 
body in the trace message.")
-    boolean isBodyIncludeStreams();
-
-    @ManagedAttribute(description = "Whether to include stream based message 
body in the trace message.")
-    void setBodyIncludeStreams(boolean bodyIncludeStreams);
-
-    @ManagedAttribute(description = "Whether to include file based message 
body in the trace message.")
-    boolean isBodyIncludeFiles();
-
-    @ManagedAttribute(description = "Whether to include file based message 
body in the trace message.")
-    void setBodyIncludeFiles(boolean bodyIncludeFiles);
-
-    @ManagedOperation(description = "Dumps the traced messages for the given 
node or route")
-    List<BacklogTracerEventMessage> dumpTracedMessages(String nodeOrRouteId);
-
-    @ManagedOperation(description = "Dumps the traced messages for the given 
node or route in xml format")
-    String dumpTracedMessagesAsXml(String nodeOrRouteId);
-
-    @ManagedOperation(description = "Dumps all the traced messages")
-    List<BacklogTracerEventMessage> dumpAllTracedMessages();
-
-    @ManagedOperation(description = "Dumps all the traced messages in xml 
format")
-    String dumpAllTracedMessagesAsXml();
-
-    @ManagedOperation(description = "Clears the backlog")
-    void clear();
-
-}

http://git-wip-us.apache.org/repos/asf/camel/blob/2d686b4a/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedBacklogTracer.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedBacklogTracer.java
 
b/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedBacklogTracer.java
index 20708de..bb74666 100644
--- 
a/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedBacklogTracer.java
+++ 
b/camel-core/src/main/java/org/apache/camel/management/mbean/ManagedBacklogTracer.java
@@ -21,7 +21,7 @@ import java.util.List;
 import org.apache.camel.CamelContext;
 import org.apache.camel.api.management.ManagedResource;
 import org.apache.camel.api.management.mbean.BacklogTracerEventMessage;
-import org.apache.camel.api.management.mbean.ManagedTracerBacklogMBean;
+import org.apache.camel.api.management.mbean.ManagedBacklogTracerMBean;
 import org.apache.camel.processor.interceptor.BacklogTracer;
 import org.apache.camel.spi.ManagementStrategy;
 
@@ -29,7 +29,7 @@ import org.apache.camel.spi.ManagementStrategy;
  * @version 
  */
 @ManagedResource(description = "Managed BacklogTracer")
-public class ManagedBacklogTracer implements ManagedTracerBacklogMBean {
+public class ManagedBacklogTracer implements ManagedBacklogTracerMBean {
     private final CamelContext camelContext;
     private final BacklogTracer backlogTracer;
 

Reply via email to