org.apache.jcs.auxiliary.disk.jdbc
Class JDBCDiskCachePoolAccessManager

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCachePoolAccessManager

public class JDBCDiskCachePoolAccessManager
extends Object

Manages JDBCDiskCachePoolAccess instances. If a connectionPoolName value is supplied, the JDBC disk cache will try to use this manager to create a pool. Assuming the name is "MyPool":

 jcs.jdbcconnectionpool.MyPool.attributes.userName=MyUserName
 jcs.jdbcconnectionpool.MyPool.attributes.password=MyPassword
 jcs.jdbcconnectionpool.MyPool.attributes.url=MyUrl
 jcs.jdbcconnectionpool.MyPool.attributes.maxActive=MyMaxActive
 jcs.jdbcconnectionpool.MyPool.attributes.driverClassName=MyDriverClassName
 


Field Summary
static String ATTRIBUTE_PREFIX
          .attributes
static String POOL_CONFIGURATION_PREFIX
          props prefix
 
Method Summary
protected  JDBCDiskCachePoolAccessAttributes configurePoolAccessAttributes(String poolName)
          Configures the attributes using the properties.
static JDBCDiskCachePoolAccessManager getInstance(Properties props)
          returns a singleton instance
 JDBCDiskCachePoolAccess getJDBCDiskCachePoolAccess(String poolName)
          Returns a pool for the name if one has been created.
protected  Properties getProps()
           
protected  void setProps(Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POOL_CONFIGURATION_PREFIX

public static final String POOL_CONFIGURATION_PREFIX
props prefix

See Also:
Constant Field Values

ATTRIBUTE_PREFIX

public static final String ATTRIBUTE_PREFIX
.attributes

See Also:
Constant Field Values
Method Detail

getInstance

public static JDBCDiskCachePoolAccessManager getInstance(Properties props)
returns a singleton instance

Parameters:
props -
Returns:
JDBCDiskCachePoolAccessManager

getJDBCDiskCachePoolAccess

public JDBCDiskCachePoolAccess getJDBCDiskCachePoolAccess(String poolName)
Returns a pool for the name if one has been created. Otherwise it creates a pool.

Parameters:
poolName -
Returns:
JDBCDiskCachePoolAccess

configurePoolAccessAttributes

protected JDBCDiskCachePoolAccessAttributes configurePoolAccessAttributes(String poolName)
Configures the attributes using the properties.

Parameters:
poolName -
Returns:
JDBCDiskCachePoolAccessAttributes

setProps

protected void setProps(Properties props)
Parameters:
props - the props to set

getProps

protected Properties getProps()
Returns:
the props


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.