Class JDBCDiskCacheAttributes
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.commons.jcs3.auxiliary.disk.AbstractDiskCacheAttributes
org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCacheAttributes
- All Implemented Interfaces:
- Serializable,- Cloneable,- AuxiliaryCacheAttributes,- IDiskCacheAttributes
- Direct Known Subclasses:
- MySQLDiskCacheAttributes
The configurator will set these values based on what is in the cache.ccf file.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributesIDiskCacheAttributes.DiskLimitType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThis is the default limit on the maximum number of active connections.static final StringThe default Pool Name to which the connection pool will be keyed.static final intThis is the default setting for the cleanup routine.Fields inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributesMAX_PURGATORY_SIZE_DEFAULT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongintintgetUrl()booleanbooleanvoidsetConnectionPoolName(String connectionPoolName) voidsetDatabase(String database) This is appended to the url.voidsetDriverClassName(String driverClassName) voidsetJndiPath(String jndiPath) voidsetJndiTTL(long jndiTTL) voidsetMaxTotal(int maxActive) voidsetPassword(String password) voidsetShrinkerIntervalSeconds(int shrinkerIntervalSecondsArg) voidsetTableName(String tableName) voidsetTestBeforeInsert(boolean testBeforeInsert) If this is true then the disk cache will check to see if the item already exists in the database.voidvoidsetUseDiskShrinker(boolean useDiskShrinker) voidsetUserName(String userName) toString()For debugging.Methods inherited from class org.apache.commons.jcs3.auxiliary.disk.AbstractDiskCacheAttributesgetDiskLimitType, getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskLimitType, setDiskLimitTypeName, setDiskPath, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimitMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributesclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributesclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
- 
Field Details- 
DEFAULT_MAX_TOTALThis is the default limit on the maximum number of active connections.- See Also:
 
- 
DEFAULT_SHRINKER_INTERVAL_SECONDSThis is the default setting for the cleanup routine.- See Also:
 
- 
DEFAULT_POOL_NAMEThe default Pool Name to which the connection pool will be keyed.- See Also:
 
 
- 
- 
Constructor Details- 
JDBCDiskCacheAttributespublic JDBCDiskCacheAttributes()
 
- 
- 
Method Details- 
setUserName- Parameters:
- userName- The userName to set.
 
- 
getUserName- Returns:
- Returns the userName.
 
- 
setPassword- Parameters:
- password- The password to set.
 
- 
getPassword- Returns:
- Returns the password.
 
- 
setUrl- Parameters:
- url- The url to set.
 
- 
getUrl- Returns:
- Returns the url.
 
- 
setDatabaseThis is appended to the url.- Parameters:
- database- The database to set.
 
- 
getDatabase- Returns:
- Returns the database.
 
- 
setDriverClassName- Parameters:
- driverClassName- The driverClassName to set.
 
- 
getDriverClassName- Returns:
- Returns the driverClassName.
 
- 
getJndiPath- Returns:
- the jndiPath
 
- 
setJndiPath- Parameters:
- jndiPath- the jndiPath to set
 
- 
getJndiTTL- Returns:
- the jndiTTL
 
- 
setJndiTTL- Parameters:
- jndiTTL- the jndiTTL to set
 
- 
setTableName- Parameters:
- tableName- The tableName to set.
 
- 
getTableName- Returns:
- Returns the tableName.
 
- 
setTestBeforeInsertIf this is true then the disk cache will check to see if the item already exists in the database. If it is false, it will try to insert. If the insert fails it will try to update.- Parameters:
- testBeforeInsert- The testBeforeInsert to set.
 
- 
isTestBeforeInsert- Returns:
- Returns the testBeforeInsert.
 
- 
setMaxTotal- Parameters:
- maxActive- The maxTotal to set.
 
- 
getMaxTotal- Returns:
- Returns the maxTotal.
 
- 
setShrinkerIntervalSeconds- Parameters:
- shrinkerIntervalSecondsArg- The shrinkerIntervalSeconds to set.
 
- 
getShrinkerIntervalSeconds- Returns:
- Returns the shrinkerIntervalSeconds.
 
- 
setUseDiskShrinker- Parameters:
- useDiskShrinker- The useDiskShrinker to set.
 
- 
isUseDiskShrinker- Returns:
- Returns the useDiskShrinker.
 
- 
setConnectionPoolName- Parameters:
- connectionPoolName- the connectionPoolName to set
 
- 
getConnectionPoolName- Returns:
- the connectionPoolName
 
- 
toStringFor debugging.- Overrides:
- toStringin class- AbstractDiskCacheAttributes
- Returns:
- debug string with most of the properties.
 
 
-