ConnectionPool in order to provide a standard interface to the user.
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| protected volatile ObjectName |
| Access | Constructor and Description |
|---|---|
| public | |
| public | DataSource(PoolConfiguration
The pool properties poolProperties)Constructs a DataSource object wrapping a connection |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectName | Returns: the ObjectName for the ConnectionPoolMBeanthe ObjectName for the DataSource original)Creates the ObjectName for the ConnectionPoolMBean object to be registered |
| public void | postDeregister()
Implements javax. Unregisters the underlying connection pool mbean. |
| public void | postRegister(Boolean
Indicates whether or not the MBean has
been successfully registered in the MBean server. The value
false means that the registration phase has failed. registrationDone)Implements javax. no-op Allows the MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. |
| public void | preDeregister()
Implements javax. no-op Allows the MBean to perform any operations it needs before being unregistered by the MBean server. |
| public ObjectName | preRegister(MBeanServer
The MBean Server in which the MBean will be registered. server, ObjectName The object name of the MBean. This name is null if
the name parameter to one of the name)createMBean or
registerMBean methods in the MBeanServer
interface is null. In that case, this method must return a
non-null ObjectName for the new MBean.Implements javax. If the connection pool MBean exists, it will be registered during this operation. |
| protected void | registerJmx()
Registers the ConnectionPoolMBean under a unique name based on the ObjectName for the DataSource |
| protected void |
| log | back to summary |
|---|---|
| private static final Log log | |
| oname | back to summary |
|---|---|
| protected volatile ObjectName oname | |
| DataSource | back to summary |
|---|---|
| public DataSource() Constructor for reflection only. A default set of pool properties will be created. | |
| DataSource | back to summary |
|---|---|
| public DataSource(PoolConfiguration poolProperties) Constructs a DataSource object wrapping a connection
| |
| createObjectName | back to summary |
|---|---|
| public ObjectName createObjectName(ObjectName original) throws MalformedObjectNameException Creates the ObjectName for the ConnectionPoolMBean object to be registered
| |
| postDeregister | back to summary |
|---|---|
| public void postDeregister() Implements javax. Doc from javax. Unregisters the underlying connection pool mbean. If the implementation of this method throws a This might be confusing for the code calling
| |
| postRegister | back to summary |
|---|---|
| public void postRegister(Boolean registrationDone) Implements javax. Doc from javax. no-op If the implementation of this method throws a This might be confusing for the code calling | |
| preDeregister | back to summary |
|---|---|
| public void preDeregister() throws Exception Implements javax. Doc from javax. no-op
| |
| preRegister | back to summary |
|---|---|
| public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception Implements javax. Doc from javax. If the connection pool MBean exists, it will be registered during this operation.
| |
| registerJmx | back to summary |
|---|---|
| protected void registerJmx() Registers the ConnectionPoolMBean under a unique name based on the ObjectName for the DataSource | |
| unregisterJmx | back to summary |
|---|---|
| protected void unregisterJmx() | |