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 int
This is the default limit on the maximum number of active connections.static final String
The default Pool Name to which the connection pool will be keyed.static final int
This 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 TypeMethodDescriptionlong
int
int
getUrl()
boolean
boolean
void
setConnectionPoolName
(String connectionPoolName) void
setDatabase
(String database) This is appended to the url.void
setDriverClassName
(String driverClassName) void
setJndiPath
(String jndiPath) void
setJndiTTL
(long jndiTTL) void
setMaxTotal
(int maxActive) void
setPassword
(String password) void
setShrinkerIntervalSeconds
(int shrinkerIntervalSecondsArg) void
setTableName
(String tableName) void
setTestBeforeInsert
(boolean testBeforeInsert) If this is true then the disk cache will check to see if the item already exists in the database.void
void
setUseDiskShrinker
(boolean useDiskShrinker) void
setUserName
(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, setShutdownSpoolTimeLimit
Methods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
toString
in classAbstractDiskCacheAttributes
- Returns:
- debug string with most of the properties.
-