Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


oracle.jbo.pool
Class ResourcePoolManager

java.lang.Object
  extended by oracle.jbo.pool.ResourcePoolManager

Direct Known Subclasses:
ConnectionPoolManagerImpl, OCIConnectionPoolManagerImpl, PoolMgr, QCPoolMgr

public class ResourcePoolManager
extends java.lang.Object

Manages a collection of resource pools. The ResourcePoolManager is also responsible for maintaining a pool monitor daemon. The monitor daemon is responsible for waking up the managed ResourcePools routinely.

See Also:
ResourcePool.wakeup()

Field Summary
protected  java.lang.Integer mLock
           

 

Constructor Summary
ResourcePoolManager()
           

 

Method Summary
 void addResourcePool(java.lang.Object poolKey, java.lang.Object pool)
          Adds the pool to the pool manager collection.
 void classLoaderShuttingDown()
           
protected  void createPoolMonitor()
           
 void destroy()
          Destroys the pool manager.
static ResourcePoolManager getManagerInstance()
          Retrieves the singleton instance of the Pool Manager
protected  int getMonitorSleepInterval()
          Returns the interval in milliseconds for which the monitor daemon should sleep between wakeup requests.
static int getProperty(java.lang.String name, java.util.Hashtable environment, int defaultValue)
           
 java.lang.Object getResourcePool(java.lang.Object poolKey)
          Returns the ResourcePool for the specified key.
 java.util.Enumeration getResourcePoolKeys()
          Returns an enumeration of resource pool keys.
 java.util.Enumeration getResourcePools()
          Returns an enumeration of resource pools.
 java.util.Timer getResourcePoolTimer()
          Retrieves the singleton instance of the Timer thread
protected  void removePoolMonitor()
           
 void removeResourcePool(java.lang.Object poolKey)
          Removes the specified pool from the pool manager.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

mLock

protected final java.lang.Integer mLock

Constructor Detail

ResourcePoolManager

public ResourcePoolManager()

Method Detail

getManagerInstance

public static ResourcePoolManager getManagerInstance()
Retrieves the singleton instance of the Pool Manager

getResourcePoolTimer

public java.util.Timer getResourcePoolTimer()
Retrieves the singleton instance of the Timer thread

getResourcePool

public java.lang.Object getResourcePool(java.lang.Object poolKey)
Returns the ResourcePool for the specified key.

addResourcePool

public void addResourcePool(java.lang.Object poolKey,
                            java.lang.Object pool)
Adds the pool to the pool manager collection.
Parameters:
poolKey - a unique identifier representing the added pool.

removeResourcePool

public void removeResourcePool(java.lang.Object poolKey)
Removes the specified pool from the pool manager.
Parameters:
poolKey - the identifier that was used to add the pool to pool manager

getResourcePools

public java.util.Enumeration getResourcePools()
Returns an enumeration of resource pools.

getResourcePoolKeys

public java.util.Enumeration getResourcePoolKeys()
Returns an enumeration of resource pool keys.

destroy

public void destroy()
Destroys the pool manager. Removes all resources from all of the pools that are managed by this pool manager.

createPoolMonitor

protected void createPoolMonitor()

classLoaderShuttingDown

public void classLoaderShuttingDown()

removePoolMonitor

protected void removePoolMonitor()

getMonitorSleepInterval

protected int getMonitorSleepInterval()
Returns the interval in milliseconds for which the monitor daemon should sleep between wakeup requests.

getProperty

public static final int getProperty(java.lang.String name,
                                    java.util.Hashtable environment,
                                    int defaultValue)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.5.0)

E10653-06


Copyright © 1997, 2011, Oracle. All rights reserved.