public class ConnectionPoolMBean extends Object implements DynamicMBean, MBeanRegistration, NotificationBroadcaster, ProxoolListenerIF, ConfigurationListenerIF
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
NOTIFICATION_TYPE_DEFINITION_UPDATED
Notification type emitted when the pool definition is updated.
|
| 构造器和说明 |
|---|
ConnectionPoolMBean(String alias,
Properties poolProperties) |
public ConnectionPoolMBean(String alias, Properties poolProperties) throws ProxoolException
ProxoolExceptionpublic Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
public AttributeList getAttributes(String[] attributeNames)
getAttributes 在接口中 DynamicMBeanDynamicMBean.getAttributes(java.lang.String[])public AttributeList setAttributes(AttributeList attributes)
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
public MBeanInfo getMBeanInfo()
getMBeanInfo 在接口中 DynamicMBeanDynamicMBean.getMBeanInfo()public void onRegistration(ConnectionPoolDefinitionIF connectionPoolDefinition, Properties completeInfo)
onRegistration 在接口中 ProxoolListenerIFconnectionPoolDefinition - the new definition.completeInfo - the properties that could be used to create this definition.ProxoolListenerIF.onRegistration(org.logicalcobwebs.proxool.ConnectionPoolDefinitionIF, java.util.Properties)public void onShutdown(String alias)
onShutdown 在接口中 ProxoolListenerIFalias - the alias of the pool about to be shut down.ProxoolListenerIF.onShutdown(java.lang.String)public void definitionUpdated(ConnectionPoolDefinitionIF connectionPoolDefinition, Properties completeInfo, Properties changedInfo)
NOTIFICATION_TYPE_DEFINITION_UPDATED event.definitionUpdated 在接口中 ConfigurationListenerIFconnectionPoolDefinition - the new definitioncompleteInfo - the properties that could be used to create this definitionchangedInfo - 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)public void addNotificationListener(NotificationListener notificationListener, NotificationFilter notificationFilter, Object handBack) throws IllegalArgumentException
public void removeNotificationListener(NotificationListener notificationListener) throws ListenerNotFoundException
public MBeanNotificationInfo[] getNotificationInfo()
public ObjectName preRegister(MBeanServer mBeanServer, ObjectName objectName) throws Exception
public void postRegister(Boolean success)
public void preDeregister()
throws Exception
preDeregister 在接口中 MBeanRegistrationExceptionMBeanRegistration.preDeregister()public void postDeregister()
postDeregister 在接口中 MBeanRegistrationMBeanRegistration.postDeregister()Copyright © 2024. All rights reserved.