org.logicalcobwebs.proxool.admin.jmx
类 ProxoolJMXHelper

java.lang.Object
  继承者 org.logicalcobwebs.proxool.admin.jmx.ProxoolJMXHelper

public class ProxoolJMXHelper
extends Object

Utilities for Proxool JMX instrumentation.

从以下版本开始:
Proxool 0.8
版本:
$Revision: 1.7 $, $Date: 2006/01/18 14:39:56 $
作者:
Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)

方法摘要
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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

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.
抛出:
ProxoolException - if the pool can not be found.

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.

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.
抛出:
MalformedObjectNameException - if the creation of the object name fails.

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.


Copyright © 2014. All rights reserved.