|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cache
Contains several usefull methods for configuring, administering and monitoring the Cache.
Method Summary | |
---|---|
void |
close()
Deprecated. will mark the cache as "not ready" and shutdown the cache. |
void |
flush()
Deprecated. will mark all objects in the cache, both disk and memory, as invalid, forcing objects to be reloaded. |
void |
flushDisk()
Deprecated. will mark all objects in the cache as invalid, forcing objects to be reloaded. |
void |
flushMemory()
Deprecated. will mark all objects in the cache as invalid, forcing objects to be reloaded. |
CacheAttributes |
getAttributes()
Deprecated. returns the current attributes of the cache including the cache version number, wether the cache is local or distributed, the maximum number of objects in the cache, the disk cache location, and the disk cache size. |
float |
getVersion()
Deprecated. returns the current version of the cache. |
void |
init(CacheAttributes attributes)
Deprecated. initializes the cache, allocates space for metadata and starts the service threads. |
boolean |
isDistributed()
Deprecated. returns true if the cache is currently in distributed mode, that it is distributing updates and invalidates within the site, false if all cache actions are local only. |
boolean |
isReady()
Deprecated. returns true if the cache has been initialized and not closed, false otherwise. |
Enumeration |
listCacheObjects()
Deprecated. will return an Enumeration of CacheObjectInfo objects describing the objects in all regions in the cache. |
Enumeration |
listCacheObjects(String region)
Deprecated. will return an Enumeration of CacheObjectInfo objects describing the objects in the specified in the cache. |
void |
open()
Deprecated. will create a CacheAttributes object based on the values in a Java properties file, then call the method init. |
void |
open(String configFile)
Deprecated. will create a CacheAttributes object based on the values in a Java properties file, then call the method init. |
void |
setLogSeverity(int severity)
Deprecated. sets the log severity of the cache system. |
Method Detail |
---|
void init(CacheAttributes attributes) throws CacheNotAvailableException
attributes
- contains configuration information to initialize the
cache system.
CacheNotAvailableException
- if the cache is not ready.void open() throws CacheNotAvailableException
CacheNotAvailableException
- if the cache is not ready.void open(String configFile) throws CacheNotAvailableException
CacheNotAvailableException
- if the cache is not ready.void close()
void flush() throws CacheException
CacheException
- if an error occurs.void flushMemory() throws CacheException
CacheException
- if an error occurs.void flushDisk() throws CacheException
CacheException
- if an error occurs.float getVersion()
boolean isReady()
boolean isDistributed()
Enumeration listCacheObjects()
Enumeration listCacheObjects(String region) throws RegionNotFoundException
region
- the region to get the Enumeration for.
RegionNotFoundException
- if an invalid or non existing region is
specified.CacheAttributes getAttributes() throws CacheNotAvailableException
CacheNotAvailableException
- if the cache is not ready.void setLogSeverity(int severity)
severity
- the severity level to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |