cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1142531 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
Date Mon, 04 Jul 2011 01:59:00 GMT
Author: ffang
Date: Mon Jul  4 01:58:59 2011
New Revision: 1142531

URL: http://svn.apache.org/viewvc?rev=1142531&view=rev
Log:
[CXF-3629]mbean WorkQueueManager misses information about thread pool status

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java?rev=1142531&r1=1142530&r2=1142531&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
(original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
Mon Jul  4 01:58:59 2011
@@ -52,6 +52,21 @@ public class WorkQueueImplMBeanWrapper i
         return aWorkQueue.getSize();
     }
 
+    @ManagedAttribute(description = "The largest number of threads")
+    public int getLargestPoolSize() { 
+        return aWorkQueue.getLargestPoolSize(); 
+    }
+
+    @ManagedAttribute(description = "The current number of threads")
+    public int getPoolSize() { 
+        return aWorkQueue.getPoolSize(); 
+    }
+
+    @ManagedAttribute(description = "The number of threads currently busy")
+    public int getActiveCount() { 
+        return aWorkQueue.getActiveCount(); 
+    }
+    
     @ManagedAttribute(description = "The WorkQueue has nothing to do",
                       persistPolicy = "OnUpdate")
     public boolean isEmpty() {



Mime
View raw message