You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2011/07/04 04:19:12 UTC
svn commit: r1142533 - in /cxf/branches/2.3.x-fixes: ./
rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
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() {