cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject svn commit: r358986 - /cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/PoolableComponentHandlerMBean.java
Date Sun, 25 Dec 2005 16:23:59 GMT
Author: giacomo
Date: Sun Dec 25 08:23:56 2005
New Revision: 358986

URL: http://svn.apache.org/viewcvs?rev=358986&view=rev
Log:
- correct the access to properties of the bean
- make use of overwiding JMX naming stuff

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/PoolableComponentHandlerMBean.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/PoolableComponentHandlerMBean.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/PoolableComponentHandlerMBean.java?rev=358986&r1=358985&r2=358986&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/PoolableComponentHandlerMBean.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/core/container/handler/PoolableComponentHandlerMBean.java
Sun Dec 25 08:23:56 2005
@@ -17,6 +17,7 @@
 package org.apache.cocoon.core.container.handler;
 
 
+import org.apache.cocoon.util.JMXUtils;
 import org.mortbay.util.jmx.ModelMBeanImpl;
 
 import javax.management.InstanceNotFoundException;
@@ -72,22 +73,31 @@
 
     public int getDefaultMaxPoolSize()
     {
-        return handler.DEFAULT_MAX_POOL_SIZE;
+        return NonThreadSafePoolableComponentHandler.DEFAULT_MAX_POOL_SIZE;
     }
 
     public int getMaxPoolSize()
     {
-        return handler.max;
+        return handler.getMax();
     }
 
     public int getReadyPoolSize()
     {
-        return handler.readySize;
+        return handler.getReadySize();
     }
 
     public int getTotalPoolSize()
     {
-        return handler.size;
+        return handler.getSize();
+    }
+    
+    public String getJmxName() 
+    {
+        return JMXUtils.genDefaultJmxName(handler.getInfo().getServiceClassName());
+    }
+ 
+    public String getJmxNameAddition()
+    {
+        return "handler=poolable"; 
     }
-
 }



Mime
View raw message