|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.pool.ResourcePoolManager
oracle.jbo.common.ampool.PoolMgr
oracle.jbo.common.ampool.ContextPoolManager
public class ContextPoolManager
Field Summary |
---|
Fields inherited from class oracle.jbo.common.ampool.PoolMgr |
---|
LOGGER_NAME |
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, wakeup |
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 |
---|
public ContextPoolManager()
Method Detail |
---|
public java.util.Timer getResourcePoolTimer()
ResourcePoolManager
getResourcePoolTimer
in class ResourcePoolManager
public java.lang.Object getResourcePool(java.lang.Object poolKey)
ResourcePoolManager
getResourcePool
in class ResourcePoolManager
public void addResourcePool(java.lang.Object poolKey, java.lang.Object pool)
ResourcePoolManager
addResourcePool
in class ResourcePoolManager
poolKey
- a unique identifier representing the added pool.public void removeResourcePool(java.lang.Object poolKey)
ResourcePoolManager
removeResourcePool
in class ResourcePoolManager
poolKey
- the identifier that was used to add the pool to pool
managerpublic java.util.Enumeration getResourcePools()
ResourcePoolManager
getResourcePools
in class ResourcePoolManager
public java.util.Enumeration getResourcePoolKeys()
ResourcePoolManager
getResourcePoolKeys
in class ResourcePoolManager
public boolean isPoolCreated(java.lang.String poolName)
PoolMgr
isPoolCreated
in class PoolMgr
public ApplicationPool getPool(java.lang.String poolName)
PoolMgr
getPool
in class PoolMgr
ResourcePoolManager.getResourcePool(Object)
public void addPool(ApplicationPool pool)
PoolMgr
addPool
in class PoolMgr
pool
- the pool to add.ResourcePoolManager.addResourcePool(Object, Object)
public void removePool(java.lang.String poolName)
PoolMgr
removePool
in class PoolMgr
poolName
- name of the pool to remove.ResourcePoolManager.removeResourcePool(Object)
public java.util.Enumeration getPools()
PoolMgr
getPools
in class PoolMgr
ResourcePoolManager.getResourcePools()
public java.util.Enumeration getPoolNames()
getPoolNames
in class PoolMgr
ResourcePoolManager.getResourcePoolKeys()
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
PoolMgr
createPool
in class PoolMgr
java.lang.Exception
public ApplicationPool createPool(java.lang.String poolName, java.lang.String applicationModuleName, java.lang.String connectString, java.util.Hashtable environment) throws java.lang.Exception
PoolMgr
createPool
in class PoolMgr
java.lang.Exception
public ApplicationPool createPool(java.lang.String poolName, java.lang.String packageName, java.lang.String configName, java.util.Properties props) throws java.lang.Exception
PoolMgr
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.
createPool
in class PoolMgr
poolName
- name of the poolpackageName
- package name of the AppModule., package10, for package10.Package10ModuleconfigName
- named Configuration to useprops
- collection of additional properties to be passed to the application pool
java.lang.Exception
public ApplicationPool findPool(java.lang.String poolName, java.lang.String poolClassName, java.lang.String applicationModuleName, java.lang.String connectString, java.util.Hashtable environment)
PoolMgr
findPool
in class PoolMgr
public ApplicationPool findPool(java.lang.String poolName, java.lang.String applicationModuleName, java.lang.String connectString, java.util.Hashtable environment)
PoolMgr
findPool
in class PoolMgr
public ApplicationPool findPool(java.lang.String poolName, java.lang.String packageName, java.lang.String configName, java.util.Properties props)
PoolMgr
findPool
in class PoolMgr
public java.lang.Object[] getAllPoolMgrs()
public final PoolMgr getApplicationPoolMgr(java.lang.Object app)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.7.0) E10653-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |