|
Oracle® Universal Connection Pool Java API Reference 11g Release 1 (11.1) E11990-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UniversalConnectionPoolManagerMBean
The Universal Connection Pool Manager MBean defines operations and attributes for managing pool instances. Remote users can get access to these operations and attributes using JMX operations. The MBean has access to the Universal Connection Pool Manager and gets the required pool object to start an operation. <p/> There is only one Universal Connection Pool Manager MBean for a JVM and this is registered with an MBeanServer. <p/> All the operations implemented on the pool manager MBean are called only when jmxFlag
on the pool manager is set to true
. Default value for jmxFlag
is true
. When the MBeanServer is not available, jmxFlag
is automatically set to false
.
Method Summary | |
---|---|
UniversalConnectionPoolMBean |
createConnectionPool(UniversalConnectionPoolAdapter ucpAdapter) Creates a connection pool instance based on specified UCP Adapter. |
void |
destroyConnectionPool(java.lang.String poolName) Destroys the connection pool. |
UniversalConnectionPoolLifeCycleState |
getConnectionPoolLifeCycleState(java.lang.String poolName) Gets the life cycle state of the Universal Connection Pool. |
java.lang.String[] |
getConnectionPoolNames() Gets all the pool names managed by the Universal Connection Pool Manager. |
java.util.logging.Level |
getLogLevel() Gets the log level for the logger. |
int |
getMetricUpdateInterval() Gets the metric update interval value. |
void |
purgeConnectionPool(java.lang.String poolName) Purges the connection pool. |
void |
recycleConnectionPool(java.lang.String poolName) Recycles the connection pool. |
void |
refreshConnectionPool(java.lang.String poolName) Refreshes the connection pool. |
void |
registerUniversalConnectionPoolMBean(UniversalConnectionPoolMBean poolMBean) Registers the Universal Connection Pool MBean instance with the MBean server. |
void |
setLogLevel(java.util.logging.Level newLogLevel) Sets the log level for the UCP logger. |
void |
setMetricUpdateInterval(int interval) Sets the metric update interval value. |
void |
startConnectionPool(java.lang.String poolName) Starts the connection pool. |
void |
startMetricsCollection(java.lang.String poolName) Starts metric collection for the provided pool. |
void |
stopConnectionPool(java.lang.String poolName) Stops the connection pool. |
void |
stopMetricsCollection(java.lang.String poolName) Stops metric collection for the provided pool. |
void |
unregisterUniversalConnectionPoolMBean(java.lang.String poolName) Unregisters the Universal Connection Pool MBean from the MBean server. |
Method Detail |
---|
void startConnectionPool(java.lang.String poolName) throws UniversalConnectionPoolException
poolname
as a key. Pool operation is called to start the connection pool.
Starting the pool does not start metric collection for the pool. Operation startMetricsCollection
needs to be called to start the metric collection for the pool.
String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while starting the connection pool.void stopConnectionPool(java.lang.String poolName) throws UniversalConnectionPoolException
poolname
as a key. Pool operation is called to stop the connection pool. Stops the metric collection if it is already started.String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while stopping the connection pool.void refreshConnectionPool(java.lang.String poolName) throws UniversalConnectionPoolException
poolname
as a key. Pool operation is called to refresh the connection pool.String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while refreshing the connection pool.void recycleConnectionPool(java.lang.String poolName) throws UniversalConnectionPoolException
poolname
as a key. Pool operation is called to recycle the connection pool. This is similar to refresh()
, but allows only invalid available connections in the pool to be replaced with new/fresh connections.String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while recycling the connection pool.void purgeConnectionPool(java.lang.String poolName) throws UniversalConnectionPoolException
poolname
as a key. Pool operation is called to purge the connection pool.
Removes all connections from the connection pool. The primary difference in behavior between this and refresh()
is that the connection pool is left empty with no connections available after calling purge()
. Some of the connection pool properties such as minPoolSize
or initialPoolSize
may not be honored when purging connections from the pool.
String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while purging the connection pool.UniversalConnectionPoolMBean createConnectionPool(UniversalConnectionPoolAdapter ucpAdapter) throws UniversalConnectionPoolException
UniversalConnectionPoolAdapter
- The UCP Adapter for pool creation.UniversalConnectionPoolException
- If an error occurs while creating the connection pool.void destroyConnectionPool(java.lang.String poolName) throws UniversalConnectionPoolException
poolname
as a key. Pool operation is called to stop the connection pool. The pool is stopped and removed from the manager.String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while destroying the connection pool.java.lang.String[] getConnectionPoolNames() throws UniversalConnectionPoolException
UniversalConnectionPoolException
- If an error occurs while getting the pool names.void startMetricsCollection(java.lang.String poolName) throws UniversalConnectionPoolException
String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while starting metrics collection.void stopMetricsCollection(java.lang.String poolName) throws UniversalConnectionPoolException
String
- Connection pool name to find the connection pool object from the pool manager.UniversalConnectionPoolException
- If an error occurs while stopping metrics collection.void setMetricUpdateInterval(int interval) throws UniversalConnectionPoolException
int
- Value for metric update interval in seconds.UniversalConnectionPoolException
- If an error occurs while updating metric interval.int getMetricUpdateInterval()
void registerUniversalConnectionPoolMBean(UniversalConnectionPoolMBean poolMBean) throws UniversalConnectionPoolException
RequiredModelMBean
class during the registration of the Model MBean.UniversalConnectionPoolMBean
- the MBean to register in the MBeanServer.UniversalConnectionPoolException
- If an error occurs while registering the MBean.void unregisterUniversalConnectionPoolMBean(java.lang.String poolName) throws UniversalConnectionPoolException
RequiredModelMBean
class during the registration of the Model MBean.String
- Pool name to identify the MBean and to unregister it from the MBeanServer.UniversalConnectionPoolException
- If an error occurs while unregistering the MBean.UniversalConnectionPoolLifeCycleState getConnectionPoolLifeCycleState(java.lang.String poolName) throws UniversalConnectionPoolException
String
- Connection pool name to find the connection pool object from Universal Connection Pool Manager.UniversalConnectionPoolException
- If an error occurs while getting the life cycle state.void setLogLevel(java.util.logging.Level newLogLevel)
newLogLevel
- The new log level to be set for UCP logger.java.util.logging.Level getLogLevel()
|
Oracle® Universal Connection Pool Java API Reference 11g Release 1 (11.1) E11990-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |