|
||||||||||
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
public abstract class AbstractDiskCacheAttributes
This has common attributes that any conceivable disk cache would need.
Field Summary | |
---|---|
protected String |
diskPath
path to disk |
protected int |
maxPurgatorySize
default to 5000 |
protected int |
shutdownSpoolTimeLimit
This default determines how long the shutdown will wait for the key spool and data defrag to finish. |
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 | |
---|---|
AbstractDiskCacheAttributes()
|
Method Summary | |
---|---|
AuxiliaryCacheAttributes |
copy()
Simple clone. |
String |
getDiskPath()
Gets the diskPath attribute of the attributes object |
int |
getMaxPurgatorySize()
Gets the maxKeySize attribute of the DiskCacheAttributes object |
int |
getShutdownSpoolTimeLimit()
Get the amount of time in seconds we will wait for elements to move to disk during shutdown for a particular region. |
boolean |
isAllowRemoveAll()
If this is true then remove all is not prohibited. |
void |
setAllowRemoveAll(boolean allowRemoveAll)
If this is false, then remove all requests will not be honored. |
void |
setDiskPath(String path)
Sets the diskPath attribute of the IJISPCacheAttributes object |
void |
setMaxPurgatorySize(int maxPurgatorySize)
Sets the maxPurgatorySize attribute of the DiskCacheAttributes object |
void |
setShutdownSpoolTimeLimit(int shutdownSpoolTimeLimit)
Sets the amount of time in seconds we will wait for elements to move to disk during shutdown for a particular region. |
String |
toString()
Includes the common attributes for a debug message. |
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 |
---|
protected String diskPath
protected int maxPurgatorySize
protected int shutdownSpoolTimeLimit
Constructor Detail |
---|
public AbstractDiskCacheAttributes()
Method Detail |
---|
public void setDiskPath(String path)
setDiskPath
in interface IDiskCacheAttributes
path
- The new diskPath valuepublic String getDiskPath()
getDiskPath
in interface IDiskCacheAttributes
public int getMaxPurgatorySize()
getMaxPurgatorySize
in interface IDiskCacheAttributes
public void setMaxPurgatorySize(int maxPurgatorySize)
setMaxPurgatorySize
in interface IDiskCacheAttributes
maxPurgatorySize
- The new maxPurgatorySize valuepublic int getShutdownSpoolTimeLimit()
getShutdownSpoolTimeLimit
in interface IDiskCacheAttributes
public void setShutdownSpoolTimeLimit(int shutdownSpoolTimeLimit)
This is how long we give the event queue to empty.
The default is 60 seconds.
setShutdownSpoolTimeLimit
in interface IDiskCacheAttributes
shutdownSpoolTimeLimit
- the time in secondspublic AuxiliaryCacheAttributes copy()
copy
in interface AuxiliaryCacheAttributes
public void setAllowRemoveAll(boolean allowRemoveAll)
IDiskCacheAttributes
This provides a safety mechanism for the persistent store.
setAllowRemoveAll
in interface IDiskCacheAttributes
allowRemoveAll
- The allowRemoveAll to set.public boolean isAllowRemoveAll()
IDiskCacheAttributes
isAllowRemoveAll
in interface IDiskCacheAttributes
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |