|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
public class IndexedDiskCacheAttributes
Configuration class for the Indexed Disk Cache
Field Summary | |
---|---|
static boolean |
DEFAULT_OPTIMIZE_ON_SHUTDOWN
Should we optimize on shutdown. |
Fields inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes |
---|
diskPath, maxPurgatorySize, shutdownSpoolTimeLimit |
Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes |
---|
cacheName, eventQueuePoolName, eventQueueType, name |
Fields inherited from interface org.apache.jcs.auxiliary.disk.behavior.IDiskCacheAttributes |
---|
MAX_PURGATORY_SIZE_DEFUALT |
Fields inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes |
---|
POOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE |
Constructor Summary | |
---|---|
IndexedDiskCacheAttributes()
Constructor for the DiskCacheAttributes object |
Method Summary | |
---|---|
AuxiliaryCacheAttributes |
copy()
Returns a copy of the attributes. |
int |
getMaxKeySize()
Gets the maxKeySize attribute of the DiskCacheAttributes object |
int |
getMaxRecycleBinSize()
|
int |
getOptimizeAtRemoveCount()
Gets the optimizeAtRemoveCount attribute of the DiskCacheAttributes object |
boolean |
isOptimizeOnShutdown()
|
void |
setMaxKeySize(int maxKeySize)
Sets the maxKeySize attribute of the DiskCacheAttributes object |
void |
setMaxRecycleBinSize(int maxRecycleBinSize)
This cannot be larger than the maxKeySize. |
void |
setOptimizeAtRemoveCount(int cnt)
Sets the optimizeAtRemoveCount attribute of the DiskCacheAttributes object This number determines how often the disk cache should run real time optimizations. |
void |
setOptimizeOnShutdown(boolean optimizeOnShutdown)
|
java.lang.String |
toString()
Write out the values for debugging purposes. |
Methods inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes |
---|
getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimit |
Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes |
---|
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes |
---|
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName |
Field Detail |
---|
public static final boolean DEFAULT_OPTIMIZE_ON_SHUTDOWN
Constructor Detail |
---|
public IndexedDiskCacheAttributes()
Method Detail |
---|
public int getMaxKeySize()
public void setMaxKeySize(int maxKeySize)
maxKeySize
- The new maxKeySize valuepublic int getOptimizeAtRemoveCount()
public void setOptimizeAtRemoveCount(int cnt)
cnt
- The new optimizeAtRemoveCount valuepublic void setMaxRecycleBinSize(int maxRecycleBinSize)
If the maxKeySize is -1 this will be set tot he default, which is 5000.
maxRecycleBinSize
- The maxRecycleBinSize to set.public int getMaxRecycleBinSize()
public void setOptimizeOnShutdown(boolean optimizeOnShutdown)
optimizeOnShutdown
- The optimizeOnShutdown to set.public boolean isOptimizeOnShutdown()
public AuxiliaryCacheAttributes copy()
copy
in interface AuxiliaryCacheAttributes
copy
in class AbstractDiskCacheAttributes
public java.lang.String toString()
toString
in class AbstractDiskCacheAttributes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |