|
|||||||||
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
public class ProxoolJMXHelper
Utilities for Proxool JMX instrumentation.
Field Summary | |
---|---|
private static Log |
LOG
|
Constructor Summary | |
---|---|
private |
ProxoolJMXHelper()
|
Method Summary | |
---|---|
private static java.lang.String[] |
getAgentIds(java.util.Properties poolPropeties)
|
static javax.management.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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log LOG
Constructor Detail |
---|
private ProxoolJMXHelper()
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 javax.management.ObjectName getObjectName(java.lang.String alias) throws javax.management.MalformedObjectNameException
alias
- the alias of the pool.
javax.management.MalformedObjectNameException
- if the creation of the object name fails.private static java.lang.String[] getAgentIds(java.util.Properties poolPropeties)
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 |