camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1326560 - in /camel/trunk/components/camel-core-osgi/src: main/java/org/apache/camel/core/osgi/OsgiTypeConverter.java test/java/org/apache/camel/core/osgi/test/MockTypeConverterRegistry.java
Date Mon, 16 Apr 2012 11:03:50 GMT
Author: davsclaus
Date: Mon Apr 16 11:03:49 2012
New Revision: 1326560

URL: http://svn.apache.org/viewvc?rev=1326560&view=rev
Log:
CAMEL-5175: Added utilization stats to type converter registry which is also accessible from
JMX.

Modified:
    camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiTypeConverter.java
    camel/trunk/components/camel-core-osgi/src/test/java/org/apache/camel/core/osgi/test/MockTypeConverterRegistry.java

Modified: camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiTypeConverter.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiTypeConverter.java?rev=1326560&r1=1326559&r2=1326560&view=diff
==============================================================================
--- camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiTypeConverter.java
(original)
+++ camel/trunk/components/camel-core-osgi/src/main/java/org/apache/camel/core/osgi/OsgiTypeConverter.java
Mon Apr 16 11:03:49 2012
@@ -138,6 +138,10 @@ public class OsgiTypeConverter extends S
         return getDelegate().getInjector();
     }
 
+    public Statistics getStatistics() {
+        return getDelegate().getStatistics();
+    }
+
     public synchronized DefaultTypeConverter getDelegate() {
         if (delegate == null) {
             delegate = createRegistry();

Modified: camel/trunk/components/camel-core-osgi/src/test/java/org/apache/camel/core/osgi/test/MockTypeConverterRegistry.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-core-osgi/src/test/java/org/apache/camel/core/osgi/test/MockTypeConverterRegistry.java?rev=1326560&r1=1326559&r2=1326560&view=diff
==============================================================================
--- camel/trunk/components/camel-core-osgi/src/test/java/org/apache/camel/core/osgi/test/MockTypeConverterRegistry.java
(original)
+++ camel/trunk/components/camel-core-osgi/src/test/java/org/apache/camel/core/osgi/test/MockTypeConverterRegistry.java
Mon Apr 16 11:03:49 2012
@@ -55,5 +55,16 @@ public class MockTypeConverterRegistry i
         return null;
     }
 
+    public Statistics getStatistics() {
+        return null;
+    }
+
+    public void start() throws Exception {
+        // noop
+    }
+
+    public void stop() throws Exception {
+        // noop
+    }
 }
 



Mime
View raw message