org.logicalcobwebs.proxool.admin.jmx
Class ProxoolJMXHelper
java.lang.Object
org.logicalcobwebs.proxool.admin.jmx.ProxoolJMXHelper
public class ProxoolJMXHelper
extends java.lang.Object
Utilities for Proxool JMX instrumentation.
$Revision: 1.7 $, $Date: 2006/01/18 14:39:56 $- Christian Nedregaard (christian_nedregaard@email.com)
- $Author: billhorsman $ (current maintainer)
getObjectName
public static ObjectName getObjectName(String alias)
throws MalformedObjectNameException
Get the prefered JMX object name for a Proxool pool.
alias
- the alias of the pool.
- the generated object name.
getValidIdentifier
public static String getValidIdentifier(String propertyName)
Generate a valid JMX identifier attribute name from a Proxool property name.
This basically involves changing all occurences of -<char>
to
<uppercase char>
.
driver-properties
will for instance become
driverProperties
.
propertyName
- the name to be converted.
- the converted attribute name.
registerPool
public static void registerPool(String alias,
Properties poolPropeties)
throws ProxoolException
Create and register a
ConnectionPoolMBean
to the given agents.
Will log errors instead of throwing exceptions if one or more of the registrations fails.
poolPropeties
- the complete pool properties.
unregisterPool
public static void unregisterPool(String alias,
Properties poolPropeties)
Unregister a
ConnectionPoolMBean
from the given agents.
Will log errors instead of throwing exceptions if one or more of the unregistrations fails.
poolPropeties
- the complete pool properties.