Top Inners Fields Constructors Methods
com.mchange.v2.c3p0.management

public Class DynamicPooledDataSourceManagerMBean

extends Object
implements DynamicMBean
Class Inheritance
All Implemented Interfaces
javax.management.DynamicMBean
Imports
java.beans.BeanInfo, .Introspector, .PropertyChangeEvent, .PropertyChangeListener, .PropertyDescriptor, java.lang.reflect.Method, java.util.*, javax.management.Attribute, .AttributeList, .AttributeNotFoundException, .DynamicMBean, .InvalidAttributeValueException, .MBeanAttributeInfo, .MBeanConstructorInfo, .MBeanException, .MBeanInfo, .MBeanOperationInfo, .MBeanParameterInfo, .MBeanServer, .ObjectName, .ObjectInstance, .ReflectionException, javax.sql.ConnectionPoolDataSource, .DataSource, com.mchange.v1.lang.ClassUtils, com.mchange.v2.lang.ObjectUtils, com.mchange.v2.c3p0.AbstractComboPooledDataSource, .DriverManagerDataSource, .PooledDataSource, .PoolBackedDataSource, .WrapperConnectionPoolDataSource, com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource, com.mchange.v2.log.MLog, .MLogger, .MLevel, com.mchange.v2.management.ManagementUtils

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv ConnectionPoolDataSource
pack-priv Map<K, V>
pack-priv static final Set<E>
pack-priv static final Set<E>
pack-priv static final Set<E>
pack-priv static final Set<E>
pack-priv MBeanInfo
pack-priv static final MLogger
pack-priv String
pack-priv MBeanServer
pack-priv static final MBeanOperationInfo[]
pack-priv PropertyChangeListener
pack-priv PooledDataSource
pack-priv Map<K, V>
pack-priv DataSource
pack-priv Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private DynamicPooledDataSourceManagerMBean.AttrRec
private static Map<K, V>
private static MBeanOperationInfo[]
public synchronized Object
getAttribute(String
The name of the attribute to be retrieved
attr
)

Implements javax.management.DynamicMBean.getAttribute.

Obtain the value of a specific attribute of the Dynamic MBean.

public synchronized AttributeList
getAttributes(String[]
A list of the attributes to be retrieved.
attrs
)

Implements javax.management.DynamicMBean.getAttributes.

Get the values of several attributes of the Dynamic MBean.

private static String
public synchronized MBeanInfo
getMBeanInfo()

Implements javax.management.DynamicMBean.getMBeanInfo.

Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.

public synchronized Object
invoke(String
The name of the action to be invoked.
operation
,
Object[]
An array containing the parameters to be set when the action is invoked.
paramVals
,
String[]
An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.
signature
)

Implements javax.management.DynamicMBean.invoke.

Allows an action to be invoked on the Dynamic MBean.

private synchronized Exception
public synchronized void
setAttribute(Attribute
The identification of the attribute to be set and the value it is to be set to.
attrObj
)

Implements javax.management.DynamicMBean.setAttribute.

Set the value of a specific attribute of the Dynamic MBean.

public synchronized AttributeList
setAttributes(AttributeList
A list of attributes: The identification of the attributes to be set and the values they are to be set to.
al
)

Implements javax.management.DynamicMBean.setAttributes.

Sets the values of several attributes of the Dynamic MBean.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cpdsback to summary
pack-priv ConnectionPoolDataSource cpds
cpdsAttrInfosback to summary
pack-priv Map<K, V> cpdsAttrInfos
FORCE_OPSback to summary
pack-priv static final Set<E> FORCE_OPS
FORCE_READ_ONLY_PROPSback to summary
pack-priv static final Set<E> FORCE_READ_ONLY_PROPS
HIDE_OPSback to summary
pack-priv static final Set<E> HIDE_OPS
HIDE_PROPSback to summary
pack-priv static final Set<E> HIDE_PROPS
infoback to summary
pack-priv MBeanInfo info
loggerback to summary
pack-priv static final MLogger logger
mbeanNameback to summary
pack-priv String mbeanName
mbsback to summary
pack-priv MBeanServer mbs
OP_INFSback to summary
pack-priv static final MBeanOperationInfo[] OP_INFS
pclback to summary
pack-priv PropertyChangeListener pcl
pdsback to summary
pack-priv PooledDataSource pds
pdsAttrInfosback to summary
pack-priv Map<K, V> pdsAttrInfos
unpooledDataSourceback to summary
pack-priv DataSource unpooledDataSource
unpooledDataSourceAttrInfosback to summary
pack-priv Map<K, V> unpooledDataSourceAttrInfos

Constructor Detail

DynamicPooledDataSourceManagerMBeanback to summary
public DynamicPooledDataSourceManagerMBean(PooledDataSource pds, String mbeanName, MBeanServer mbs) throws Exception

Method Detail

attrRecForAttributeback to summary
private DynamicPooledDataSourceManagerMBean.AttrRec attrRecForAttribute(String attr)
extractAttributeInfosback to summary
private static Map<K, V> extractAttributeInfos(Object bean)
extractOpInfsback to summary
private static MBeanOperationInfo[] extractOpInfs()
getAttributeback to summary
public synchronized Object getAttribute(String attr) throws AttributeNotFoundException, MBeanException, ReflectionException

Implements javax.management.DynamicMBean.getAttribute.

Doc from javax.management.DynamicMBean.getAttribute.

Obtain the value of a specific attribute of the Dynamic MBean.

Parameters
attr:String

The name of the attribute to be retrieved

Returns:Object

The value of the attribute retrieved.

Exceptions
AttributeNotFoundException:
if specified attribute does not exist or cannot be retrieved
MBeanException:
Wraps a java.lang.Exception thrown by the MBean's getter.
ReflectionException:
Wraps a java.lang.Exception thrown while trying to invoke the getter.
getAttributesback to summary
public synchronized AttributeList getAttributes(String[] attrs)

Implements javax.management.DynamicMBean.getAttributes.

Doc from javax.management.DynamicMBean.getAttributes.

Get the values of several attributes of the Dynamic MBean.

Parameters
attrs:String[]

A list of the attributes to be retrieved.

Returns:AttributeList

The list of attributes retrieved.

getDescriptionback to summary
private static String getDescription(String attrName)
getMBeanInfoback to summary
public synchronized MBeanInfo getMBeanInfo()

Implements javax.management.DynamicMBean.getMBeanInfo.

Doc from javax.management.DynamicMBean.getMBeanInfo.

Provides the exposed attributes and actions of the Dynamic MBean using an MBeanInfo object.

Returns:MBeanInfo

An instance of MBeanInfo allowing all attributes and actions exposed by this Dynamic MBean to be retrieved.

invokeback to summary
public synchronized Object invoke(String operation, Object[] paramVals, String[] signature) throws MBeanException, ReflectionException

Implements javax.management.DynamicMBean.invoke.

Doc from javax.management.DynamicMBean.invoke.

Allows an action to be invoked on the Dynamic MBean.

Parameters
operation:String

The name of the action to be invoked.

paramVals:Object[]

An array containing the parameters to be set when the action is invoked.

signature:String[]

An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.

Returns:Object

The object returned by the action, which represents the result of invoking the action on the MBean specified.

Exceptions
MBeanException:
Wraps a java.lang.Exception thrown by the MBean's invoked method.
ReflectionException:
Wraps a java.lang.Exception thrown while trying to invoke the method
reinitializeback to summary
private synchronized Exception reinitialize()
setAttributeback to summary
public synchronized void setAttribute(Attribute attrObj) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException

Implements javax.management.DynamicMBean.setAttribute.

Doc from javax.management.DynamicMBean.setAttribute.

Set the value of a specific attribute of the Dynamic MBean.

Parameters
attrObj:Attribute

The identification of the attribute to be set and the value it is to be set to.

Exceptions
AttributeNotFoundException:
if specified attribute does not exist or cannot be retrieved
InvalidAttributeValueException:
if value specified is not valid for the attribute
MBeanException:
Wraps a java.lang.Exception thrown by the MBean's setter.
ReflectionException:
Wraps a java.lang.Exception thrown while trying to invoke the MBean's setter.
setAttributesback to summary
public synchronized AttributeList setAttributes(AttributeList al)

Implements javax.management.DynamicMBean.setAttributes.

Doc from javax.management.DynamicMBean.setAttributes.

Sets the values of several attributes of the Dynamic MBean.

Parameters
al:AttributeList

A list of attributes: The identification of the attributes to be set and the values they are to be set to.

Returns:AttributeList

The list of attributes that were set, with their new values.

com.mchange.v2.c3p0.management back to summary

private Class DynamicPooledDataSourceManagerMBean.AttrRec

extends Object
Class Inheritance
  • java.lang.Object
  • com.mchange.v2.c3p0.management.DynamicPooledDataSourceManagerMBean.AttrRec

Field Summary

Modifier and TypeField and Description
pack-priv MBeanAttributeInfo
pack-priv Object

Constructor Summary

AccessConstructor and Description
pack-priv
AttrRec(Object target, MBeanAttributeInfo attrInfo)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attrInfoback to summary
pack-priv MBeanAttributeInfo attrInfo
targetback to summary
pack-priv Object target

Constructor Detail

AttrRecback to summary
pack-priv AttrRec(Object target, MBeanAttributeInfo attrInfo)