Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


oracle.jbo.common.ampool
Class ContextPoolManager

java.lang.Object
  extended by oracle.jbo.pool.ResourcePoolManager
      extended by oracle.jbo.common.ampool.PoolMgr
          extended by oracle.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 pool to the pool manager collection.
 void addResourcePool(java.lang.Object poolKey, java.lang.Object pool)
          Adds the pool to the pool manager collection.
 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)
          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
 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)
          Removes the specified pool from the pool manager.

 

Methods inherited from class oracle.jbo.common.ampool.PoolMgr
destroy, findPool, getInstance, getMonitorSleepInterval

 

Methods inherited from class oracle.jbo.pool.ResourcePoolManager
classLoaderShuttingDown, 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()
Description copied from class: ResourcePoolManager
Retrieves the singleton instance of the Timer thread
Overrides:
getResourcePoolTimer in class ResourcePoolManager

getResourcePool

public java.lang.Object getResourcePool(java.lang.Object poolKey)
Description copied from class: ResourcePoolManager
Returns the ResourcePool for the specified key.
Overrides:
getResourcePool in class ResourcePoolManager

addResourcePool

public void addResourcePool(java.lang.Object poolKey,
                            java.lang.Object pool)
Description copied from class: ResourcePoolManager
Adds the pool to the pool manager collection.
Overrides:
addResourcePool in class ResourcePoolManager
Parameters:
poolKey - a unique identifier representing the added pool.

removeResourcePool

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

getResourcePools

public java.util.Enumeration getResourcePools()
Description copied from class: ResourcePoolManager
Returns an enumeration of resource pools.
Overrides:
getResourcePools in class ResourcePoolManager

getResourcePoolKeys

public java.util.Enumeration getResourcePoolKeys()
Description copied from class: ResourcePoolManager
Returns an enumeration of resource pool keys.
Overrides:
getResourcePoolKeys in class ResourcePoolManager

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:
ResourcePoolManager.getResourcePool(Object)

addPool

public void addPool(ApplicationPool pool)
Description copied from class: PoolMgr
Adds the pool to the pool manager collection.
Overrides:
addPool in class PoolMgr
Parameters:
pool - the pool to add.
See Also:
ResourcePoolManager.addResourcePool(Object, 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
Parameters:
poolName - name of the pool to remove.
See Also:
ResourcePoolManager.removeResourcePool(Object)

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)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.3.0)

E17483-04


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