|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.util.jcache.CacheAttributes
public class CacheAttributes
An administrative interface to the cache. Invalid parameters to the methods of this class will be silently ignored.
Method Summary | |
---|---|
void |
addCacheAddr(InetAddress address,
int port)
Deprecated. is used to specify the network address and port to be used by the cache messaging system. |
CacheAttributes |
copy()
Deprecated. Returns a copy of these CacheAttributes. |
Enumeration |
getCacheAddr()
Deprecated. returns an Enumeration of Strings representing the address for all the cache addresses configured. |
int |
getCleanInterval()
Deprecated. Returns the cleanInterval. |
static CacheAttributes |
getDefaultCacheAttributes()
Deprecated. |
String |
getDiskPath()
Deprecated. gets the attribute indicating the root location for the disk cache. |
int |
getDiskSize()
Deprecated. Returns the maximum size for the disk cache. |
CacheLogger |
getLogger()
Deprecated. returns the cachelogger for this cache. |
int |
getMaxObjects()
Deprecated. Returns the maximum number of Objects. |
int |
getMemoryCacheSize()
Deprecated. Gets the attribute to indicate the maximum size of the memory cache. |
boolean |
isDistributed()
Deprecated. returns an boolean indication wether this cache is distributed or not. |
void |
registerCache(CacheImpl cache)
Deprecated. |
void |
setCleanInterval(int seconds)
Deprecated. sets the attribute indicating how often the cacha should be checked for objects invalidated by "time to live" or "idle time" attributes. |
void |
setDefaultLogFileName(String pDefaultLogFileName)
Deprecated. sets the log file name for the DefaultCacheLogger. |
void |
setDiskCacheSize(int size)
Deprecated. sets the attribute to indicate the maximum size of the disk cache. |
void |
setDiskPath(String path)
Deprecated. sets the attribute indicating the root location for the disk cache. |
void |
setLocal()
Deprecated. sets the attribute to indicate the cache is local. |
void |
setLogger(CacheLogger logger)
Deprecated. sets the logger object wich will be used to log cache messages. |
void |
setMaxObjects(int size)
Deprecated. is used to set the attribute to determine the maximum number of objects allowed in the memory cache. |
void |
setMemoryCacheSize(int size)
Deprecated. sets the attribute to indicate the maximum size of the memory cache. |
String |
toString()
Deprecated. Returns a string representation of these CacheAttributes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void registerCache(CacheImpl cache)
public void setLocal()
public void setMaxObjects(int size)
size
- the maximum number of objects in the cache.public void setMemoryCacheSize(int size)
size
- the maximum size of the memory cache in megabytes.public void setDiskCacheSize(int size)
size
- the maximum size of the disk cache in megabytes.public void setDiskPath(String path)
path
- the path to the root location for the disk cache.public void setLogger(CacheLogger logger)
logger
- the logger wich will log cache messages.public void setDefaultLogFileName(String pDefaultLogFileName)
pDefaultLogFileName
- is a full path name for the log file.public void setCleanInterval(int seconds)
seconds
- how many seconds between each check.public void addCacheAddr(InetAddress address, int port)
address
- the address of the remote cache.port
- the port of the remote cache.public Enumeration getCacheAddr()
public CacheLogger getLogger()
public boolean isDistributed()
public String getDiskPath()
public String toString()
toString
in class Object
public int getMemoryCacheSize()
public CacheAttributes copy()
public int getCleanInterval()
public static CacheAttributes getDefaultCacheAttributes()
public final int getMaxObjects()
public final int getDiskSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |