Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.jbo.common.ampool
Class ContextPoolManager

java.lang.Object
  extended byoracle.jbo.pool.ResourcePoolManager
      extended byoracle.jbo.common.ampool.PoolMgr
          extended byoracle.jbo.common.ampool.ContextPoolManager

public class ContextPoolManager
extends PoolMgr


Field Summary
 
Fields inherited from class oracle.jbo.pool.ResourcePoolManager
mLock
 
Constructor Summary
ContextPoolManager()
           
 
Method Summary
 void addPool(ApplicationPool pool)
          Adds the named pool to the pool manager collection.
 void addResourcePool(java.lang.Object poolKey, java.lang.Object pool)
           
 ApplicationPool createPool(java.lang.String poolName, java.lang.String applicationModuleName, java.lang.String connectString, java.util.Hashtable environment)
          Create a new Application Module pool, throws an exception if the pool is already registered.
 ApplicationPool createPool(java.lang.String poolName, java.lang.String packageName, java.lang.String configName, java.util.Properties props)
          Creates a new Application Module pool, throws an exception if the pool is already registered.
 ApplicationPool createPool(java.lang.String poolName, java.lang.String poolClassName, java.lang.String applicationModuleName, java.lang.String connectString, java.util.Hashtable environment)
          Create a new Application Module pool, throws an exception if the pool is already registered.
 ApplicationPool findPool(java.lang.String poolName, java.lang.String applicationModuleName, java.lang.String connectString, java.util.Hashtable environment)
          Searches for a pool with the specified name.
 ApplicationPool findPool(java.lang.String poolName, java.lang.String packageName, java.lang.String configName, java.util.Properties props)
          Searches for a pool with the specified name.
 ApplicationPool findPool(java.lang.String poolName, java.lang.String poolClassName, java.lang.String applicationModuleName, java.lang.String connectString, java.util.Hashtable environment)
          Searches for a pool with the specified name.
 java.lang.Object[] getAllPoolMgrs()
           
 PoolMgr getApplicationPoolMgr(java.lang.Object app)
           
 ApplicationPool getPool(java.lang.String poolName)
          Returns the ApplicationPool interface for the named pool.
 java.util.Enumeration getPoolNames()
           
 java.util.Enumeration getPools()
          Returns the Enumeration interface that allows you to enumerate through all the Application Pools that are registered with the Pool Manager.
 java.lang.Object getResourcePool(java.lang.Object poolKey)
           
 java.util.Enumeration getResourcePoolKeys()
           
 java.util.Enumeration getResourcePools()
           
 java.util.Timer getResourcePoolTimer()
           
 boolean isPoolCreated(java.lang.String poolName)
          Returns true if the pool has already been created.
 void removePool(java.lang.String poolName)
          Removes the named pool and calls remove() method on all ApplicationModule instances that are being managed by the pool.
 void removeResourcePool(java.lang.Object poolKey)
           
 
Methods inherited from class oracle.jbo.common.ampool.PoolMgr
findPool, getInstance, getMonitorSleepInterval
 
Methods inherited from class oracle.jbo.pool.ResourcePoolManager
createPoolMonitor, getManagerInstance, getProperty, removePoolMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextPoolManager

public ContextPoolManager()
Method Detail

getResourcePoolTimer

public java.util.Timer getResourcePoolTimer()

getResourcePool

public java.lang.Object getResourcePool(java.lang.Object poolKey)

addResourcePool

public void addResourcePool(java.lang.Object poolKey,
                            java.lang.Object pool)

removeResourcePool

public void removeResourcePool(java.lang.Object poolKey)

getResourcePools

public java.util.Enumeration getResourcePools()

getResourcePoolKeys

public java.util.Enumeration getResourcePoolKeys()

isPoolCreated

public boolean isPoolCreated(java.lang.String poolName)
Description copied from class: PoolMgr
Returns true if the pool has already been created.

Overrides:
isPoolCreated in class PoolMgr

getPool

public ApplicationPool getPool(java.lang.String poolName)
Description copied from class: PoolMgr
Returns the ApplicationPool interface for the named pool.

Overrides:
getPool in class PoolMgr
See Also:
oracle.jbo.pool.ResourcePoolManager#getResourcePool()

addPool

public void addPool(ApplicationPool pool)
Description copied from class: PoolMgr
Adds the named pool to the pool manager collection.

Overrides:
addPool in class PoolMgr
See Also:
oracle.jbo.pool.ResourcePoolManager#addResourcePool(String, Object)

removePool

public void removePool(java.lang.String poolName)
Description copied from class: PoolMgr
Removes the named pool and calls remove() method on all ApplicationModule instances that are being managed by the pool.

Overrides:
removePool in class PoolMgr
See Also:
oracle.jbo.pool.ResourcePoolManager#removeResourcePool(String)

getPools

public java.util.Enumeration getPools()
Description copied from class: PoolMgr
Returns the Enumeration interface that allows you to enumerate through all the Application Pools that are registered with the Pool Manager.

Overrides:
getPools in class PoolMgr
See Also:
ResourcePoolManager.getResourcePools()

getPoolNames

public java.util.Enumeration getPoolNames()
Overrides:
getPoolNames in class PoolMgr
See Also:
ResourcePoolManager.getResourcePoolKeys()

createPool

public ApplicationPool createPool(java.lang.String poolName,
                                  java.lang.String poolClassName,
                                  java.lang.String applicationModuleName,
                                  java.lang.String connectString,
                                  java.util.Hashtable environment)
                           throws java.lang.Exception
Description copied from class: PoolMgr
Create a new Application Module pool, throws an exception if the pool is already registered. The connectInfo parameter provides the necessary settings required for creating instances of ApplicationModules that are part of the pool. You can also specify the name of the class that implements the ApplicationPool interface. This is an important setting for users that want to provide a custom implementation of the ApplicationPool interface. The default ApplicationPool implementation is in the oracle.jbo.client.ampool.ApplicationPoolImpl class.

Overrides:
createPool in class PoolMgr
Throws:
java.lang.Exception

createPool

public ApplicationPool createPool(java.lang.String poolName,
                                  java.lang.String applicationModuleName,
                                  java.lang.String connectString,
                                  java.util.Hashtable environment)
                           throws java.lang.Exception
Description copied from class: PoolMgr
Create a new Application Module pool, throws an exception if the pool is already registered. The connectInfo parameter provides the necessary settings required for creating instances of ApplicationModules that are part of the pool. You can also specify the name of the class that implements the ApplicationPool interface. This is an important setting for users that want to provide a custom implementation of the ApplicationPool interface. The default ApplicationPool implementation is in the oracle.jbo.client.ampool.ApplicationPoolImpl class.

Overrides:
createPool in class PoolMgr
Throws:
java.lang.Exception

createPool

public ApplicationPool createPool(java.lang.String poolName,
                                  java.lang.String packageName,
                                  java.lang.String configName,
                                  java.util.Properties props)
                           throws java.lang.Exception
Description copied from class: PoolMgr
Creates a new Application Module pool, throws an exception if the pool is already registered.

This method creates an Application Module pool, based on the named AppModule Configuaraion

The application module configuration provides the necessary settings required for creating instances of Application Modules that are part of the pool. You can also specify the name of a custom application pool implementation (implements oracle.jbo.common.ApplicationPool interface). The default ApplicationPool implementation is provided in oracle.jbo.common.ampool.ApplicationPoolImpl.

Overrides:
createPool in class PoolMgr
Parameters:
poolName - name of the pool
packageName - package name of the AppModule., package10, for package10.Package10Module
configName - named Configuration to use
props - collection of additional properties to be passed to the application pool
Throws:
java.lang.Exception

findPool

public ApplicationPool findPool(java.lang.String poolName,
                                java.lang.String poolClassName,
                                java.lang.String applicationModuleName,
                                java.lang.String connectString,
                                java.util.Hashtable environment)
Description copied from class: PoolMgr
Searches for a pool with the specified name. Creates a new pool if one is not located.

Overrides:
findPool in class PoolMgr

findPool

public ApplicationPool findPool(java.lang.String poolName,
                                java.lang.String applicationModuleName,
                                java.lang.String connectString,
                                java.util.Hashtable environment)
Description copied from class: PoolMgr
Searches for a pool with the specified name. Creates a new pool if one is not located.

Overrides:
findPool in class PoolMgr

findPool

public ApplicationPool findPool(java.lang.String poolName,
                                java.lang.String packageName,
                                java.lang.String configName,
                                java.util.Properties props)
Description copied from class: PoolMgr
Searches for a pool with the specified name. Creates a new pool if one is not located.

Overrides:
findPool in class PoolMgr

getAllPoolMgrs

public java.lang.Object[] getAllPoolMgrs()

getApplicationPoolMgr

public final PoolMgr getApplicationPoolMgr(java.lang.Object app)

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

 

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