org.logicalcobwebs.proxool.admin.jmx
类 ConnectionPoolMBean

java.lang.Object
  继承者 org.logicalcobwebs.proxool.admin.jmx.ConnectionPoolMBean
所有已实现的接口:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, ConfigurationListenerIF, ProxoolListenerIF

public class ConnectionPoolMBean
extends Object
implements DynamicMBean, MBeanRegistration, NotificationBroadcaster, ProxoolListenerIF, ConfigurationListenerIF

JMX DynamicMBean adapter for a Proxool connection pool.
See the configuration documentation to learn how to activate a pool for JMX. No programming is necessary to do this.

Attributes

Operations

Notifications

从以下版本开始:
Proxool 0.8
版本:
$Revision: 1.16 $, $Date: 2007/06/19 11:33:36 $
作者:
Christian Nedregaard (christian_nedregaard@email.com), $Author: billhorsman $ (current maintainer)

字段摘要
static String NOTIFICATION_TYPE_DEFINITION_UPDATED
          Notification type emitted when the pool definition is updated.
 
构造方法摘要
ConnectionPoolMBean(String alias, Properties poolProperties)
           
 
方法摘要
 void addNotificationListener(NotificationListener notificationListener, NotificationFilter notificationFilter, Object handBack)
           
 void definitionUpdated(ConnectionPoolDefinitionIF connectionPoolDefinition, Properties completeInfo, Properties changedInfo)
          Update the attributes of this MBean and emit a NOTIFICATION_TYPE_DEFINITION_UPDATED event.
 Object getAttribute(String attributeName)
           
 AttributeList getAttributes(String[] attributeNames)
           
 MBeanInfo getMBeanInfo()
           
 MBeanNotificationInfo[] getNotificationInfo()
           
 Object invoke(String operationName, Object[] params, String[] signature)
           
 void onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition, Properties completeInfo)
          Not used.
 void onShutdown(String alias)
          If the given alias equals this pools alias: Unregister this JMX bean.
 void postDeregister()
           
 void postRegister(Boolean success)
           
 void preDeregister()
           
 ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName)
           
 void removeNotificationListener(NotificationListener notificationListener)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

NOTIFICATION_TYPE_DEFINITION_UPDATED

public static final String NOTIFICATION_TYPE_DEFINITION_UPDATED
Notification type emitted when the pool definition is updated.

另请参见:
常量字段值
构造方法详细信息

ConnectionPoolMBean

public ConnectionPoolMBean(String alias,
                           Properties poolProperties)
                    throws ProxoolException
抛出:
ProxoolException
方法详细信息

getAttribute

public Object getAttribute(String attributeName)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
指定者:
接口 DynamicMBean 中的 getAttribute
抛出:
AttributeNotFoundException
MBeanException
ReflectionException
另请参见:
DynamicMBean.getAttribute(java.lang.String)

setAttribute

public void setAttribute(Attribute attribute)
                  throws AttributeNotFoundException,
                         InvalidAttributeValueException,
                         MBeanException,
                         ReflectionException
指定者:
接口 DynamicMBean 中的 setAttribute
抛出:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
另请参见:
DynamicMBean.setAttribute(javax.management.Attribute)

getAttributes

public AttributeList getAttributes(String[] attributeNames)
指定者:
接口 DynamicMBean 中的 getAttributes
另请参见:
DynamicMBean.getAttributes(java.lang.String[])

setAttributes

public AttributeList setAttributes(AttributeList attributes)
指定者:
接口 DynamicMBean 中的 setAttributes
另请参见:
DynamicMBean.setAttributes(javax.management.AttributeList)

invoke

public Object invoke(String operationName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
指定者:
接口 DynamicMBean 中的 invoke
抛出:
MBeanException
ReflectionException
另请参见:
DynamicMBean.invoke(java.lang.String, java.lang.Object[], java.lang.String[])

getMBeanInfo

public MBeanInfo getMBeanInfo()
指定者:
接口 DynamicMBean 中的 getMBeanInfo
另请参见:
DynamicMBean.getMBeanInfo()

onRegistration

public void onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition,
                           Properties completeInfo)
Not used.

指定者:
接口 ProxoolListenerIF 中的 onRegistration
参数:
connectionPoolDefinition - the new definition.
completeInfo - the properties that could be used to create this definition.
另请参见:
ProxoolListenerIF.onRegistration(org.logicalcobwebs.proxool.ConnectionPoolDefinitionIF, java.util.Properties)

onShutdown

public void onShutdown(String alias)
If the given alias equals this pools alias: Unregister this JMX bean.

指定者:
接口 ProxoolListenerIF 中的 onShutdown
参数:
alias - the alias of the pool about to be shut down.
另请参见:
ProxoolListenerIF.onShutdown(java.lang.String)

definitionUpdated

public void definitionUpdated(ConnectionPoolDefinitionIF connectionPoolDefinition,
                              Properties completeInfo,
                              Properties changedInfo)
Update the attributes of this MBean and emit a NOTIFICATION_TYPE_DEFINITION_UPDATED event.

指定者:
接口 ConfigurationListenerIF 中的 definitionUpdated
参数:
connectionPoolDefinition - the new definition
completeInfo - the properties that could be used to create this definition
changedInfo - only the properties that have changed since the pool was registered, or this method was las called.
另请参见:
ConfigurationListenerIF.definitionUpdated(org.logicalcobwebs.proxool.ConnectionPoolDefinitionIF, java.util.Properties, java.util.Properties)

addNotificationListener

public void addNotificationListener(NotificationListener notificationListener,
                                    NotificationFilter notificationFilter,
                                    Object handBack)
                             throws IllegalArgumentException
指定者:
接口 NotificationBroadcaster 中的 addNotificationListener
抛出:
IllegalArgumentException
另请参见:
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

removeNotificationListener

public void removeNotificationListener(NotificationListener notificationListener)
                                throws ListenerNotFoundException
指定者:
接口 NotificationBroadcaster 中的 removeNotificationListener
抛出:
ListenerNotFoundException
另请参见:
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
指定者:
接口 NotificationBroadcaster 中的 getNotificationInfo
另请参见:
NotificationBroadcaster.getNotificationInfo()

preRegister

public ObjectName preRegister(MBeanServer mBeanServer,
                              ObjectName objectName)
                       throws Exception
指定者:
接口 MBeanRegistration 中的 preRegister
抛出:
Exception
另请参见:
MBeanRegistration.preRegister(javax.management.MBeanServer, javax.management.ObjectName)

postRegister

public void postRegister(Boolean success)
指定者:
接口 MBeanRegistration 中的 postRegister
另请参见:
MBeanRegistration.postRegister(java.lang.Boolean)

preDeregister

public void preDeregister()
                   throws Exception
指定者:
接口 MBeanRegistration 中的 preDeregister
抛出:
Exception
另请参见:
MBeanRegistration.preDeregister()

postDeregister

public void postDeregister()
指定者:
接口 MBeanRegistration 中的 postDeregister
另请参见:
MBeanRegistration.postDeregister()


Copyright © 2014. All rights reserved.