cxf-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1142533&view=rev
Log:
Merged revisions 1142532 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/branches/2.4.x-fixes

................
  r1142532 | ffang | 2011-07-04 10:12:55 +0800 (一, 04  7 2011) | 9 lines
  
  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.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java

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

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