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 Summary
Nested classes/interfaces inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributes
IDiskCacheAttributes.DiskLimitType -
Field Summary
FieldsModifier 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.IDiskCacheAttributes
MAX_PURGATORY_SIZE_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier 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.AbstractDiskCacheAttributes
getDiskLimitType, getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskLimitType, setDiskLimitTypeName, setDiskPath, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimitMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
-
Field Details
-
DEFAULT_MAX_TOTAL
This is the default limit on the maximum number of active connections.- See Also:
-
DEFAULT_SHRINKER_INTERVAL_SECONDS
This is the default setting for the cleanup routine.- See Also:
-
DEFAULT_POOL_NAME
The default Pool Name to which the connection pool will be keyed.- See Also:
-
-
Constructor Details
-
JDBCDiskCacheAttributes
public 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.
-
setDatabase
This 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.
-
setTestBeforeInsert
If 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
-
toString
For debugging.- Overrides:
toStringin classAbstractDiskCacheAttributes- Returns:
- debug string with most of the properties.
-