|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.logicalcobwebs.proxool.admin.jmx.ProxoolJMXHelper
Utilities for Proxool JMX instrumentation.
Method Summary | |
static ObjectName |
getObjectName(java.lang.String alias)
Get the prefered JMX object name for a Proxool pool. |
static java.lang.String |
getValidIdentifier(java.lang.String propertyName)
Generate a valid JMX identifier attribute name from a Proxool property name. |
static void |
registerPool(java.lang.String alias,
java.util.Properties poolPropeties)
Create and register a ConnectionPoolMBean to the given agents. |
static void |
unregisterPool(java.lang.String alias,
java.util.Properties poolPropeties)
Unregister a ConnectionPoolMBean from the given agents. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void registerPool(java.lang.String alias, java.util.Properties poolPropeties) throws ProxoolException
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.
ProxoolException
- if the pool can not be found.public static void unregisterPool(java.lang.String alias, java.util.Properties poolPropeties)
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.public static ObjectName getObjectName(java.lang.String alias) throws MalformedObjectNameException
alias
- the alias of the pool.
javax.management.MalformedObjectNameException
- if the creation of the object name fails.
MalformedObjectNameException
public static java.lang.String getValidIdentifier(java.lang.String propertyName)
-<char>
to
<uppercase char>
.driver-properties
will for instance become
driverProperties
.
propertyName
- the name to be converted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |