|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.lateral.LateralCache
public class LateralCache
Lateral distributor. Returns null on get by default. Net search not implemented.
| Field Summary |
|---|
| Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
|---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
| Constructor Summary | |
|---|---|
protected |
LateralCache(ILateralCacheAttributes cattr)
Constructor for the LateralCache object |
|
LateralCache(ILateralCacheAttributes cattr,
ILateralCacheService lateral,
LateralCacheMonitor monitor)
Constructor for the LateralCache object |
| Method Summary | |
|---|---|
void |
dispose()
Synchronously dispose the cache. |
void |
fixCache(ILateralCacheService lateral)
Replaces the current remote cache service handle with the given handle. |
ICacheElement |
get(java.io.Serializable key)
The performace costs are too great. |
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
|
java.lang.String |
getCacheName()
Gets the cacheName attribute of the LateralCache object |
int |
getCacheType()
Gets the cacheType attribute of the LateralCache object |
java.util.Set |
getGroupKeys(java.lang.String groupName)
|
int |
getSize()
Returns the current cache size. |
java.lang.String |
getStats()
getStats |
int |
getStatus()
Returns the cache status. |
boolean |
remove(java.io.Serializable key)
Synchronously remove from the remote cache; if failed, replace the remote handle with a zombie. |
void |
removeAll()
Synchronously removeAll from the remote cache; if failed, replace the remote handle with a zombie. |
java.lang.String |
toString()
|
void |
update(ICacheElement ce)
Update lateral. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LateralCache(ILateralCacheAttributes cattr,
ILateralCacheService lateral,
LateralCacheMonitor monitor)
cattr - lateral - monitor - protected LateralCache(ILateralCacheAttributes cattr)
cattr - | Method Detail |
|---|
public void update(ICacheElement ce)
throws java.io.IOException
update in interface ICachece -
java.io.IOException
public ICacheElement get(java.io.Serializable key)
throws java.io.IOException
get in interface ICachekey -
java.io.IOExceptionpublic java.util.Set getGroupKeys(java.lang.String groupName)
groupName -
public boolean remove(java.io.Serializable key)
throws java.io.IOException
remove in interface ICachekey -
java.io.IOException
public void removeAll()
throws java.io.IOException
removeAll in interface ICachejava.io.IOException
public void dispose()
throws java.io.IOException
dispose in interface ICachejava.io.IOExceptionpublic int getStatus()
getStatus in interface ICachepublic int getSize()
getSize in interface ICachepublic int getCacheType()
getCacheType in interface ICacheTypepublic java.lang.String getCacheName()
getCacheName in interface ICachepublic void fixCache(ILateralCacheService lateral)
lateral - public java.lang.String getStats()
getStats in interface ICachepublic AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||