cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1142532 - in /cxf/branches/2.4.x-fixes: ./ rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
Date Mon, 04 Jul 2011 02:12:55 GMT
Author: ffang
Date: Mon Jul  4 02:12:55 2011
New Revision: 1142532

URL: http://svn.apache.org/viewvc?rev=1142532&view=rev
Log:
Merged revisions 1142531 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1142531 | ffang | 2011-07-04 09:58:59 +0800 (δΈ€, 04  7 2011) | 1 line
  
  [CXF-3629]mbean WorkQueueManager misses information about thread pool status
........

Modified:
    cxf/branches/2.4.x-fixes/   (props changed)
    cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java?rev=1142532&r1=1142531&r2=1142532&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
(original)
+++ cxf/branches/2.4.x-fixes/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
Mon Jul  4 02:12:55 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