public class ProxoolJMXHelper extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static ObjectName |
getObjectName(String alias)
Get the prefered JMX object name for a Proxool pool.
|
static String |
getValidIdentifier(String propertyName)
Generate a valid JMX identifier attribute name from a Proxool property name.
|
static void |
registerPool(String alias,
Properties poolPropeties)
Create and register a
ConnectionPoolMBean to the given agents. |
static void |
unregisterPool(String alias,
Properties poolPropeties)
Unregister a
ConnectionPoolMBean from the given agents. |
public static void registerPool(String alias, 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(String alias, 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(String alias) throws MalformedObjectNameException
alias - the alias of the pool.MalformedObjectNameException - if the creation of the object name fails.public static String getValidIdentifier(String propertyName)
-<char> to
<uppercase char>.driver-properties will for instance become
driverProperties.propertyName - the name to be converted.Copyright © 2024. All rights reserved.