|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCache<K,V>
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging<K,V>
org.apache.jcs.auxiliary.lateral.LateralCache<K,V>
public class LateralCache<K extends Serializable,V extends Serializable>
Lateral distributor. Returns null on get by default. Net search not implemented.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.jcs.engine.behavior.ICacheType |
|---|
ICacheType.CacheType |
| Field Summary |
|---|
| Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
|---|
cacheEventLogger, elementSerializer, keyMatcher |
| Constructor Summary | |
|---|---|
LateralCache(ILateralCacheAttributes cattr)
Constructor for the LateralCache object |
|
LateralCache(ILateralCacheAttributes cattr,
ICacheServiceNonLocal<K,V> lateral,
LateralCacheMonitor monitor)
Constructor for the LateralCache object |
|
| Method Summary | |
|---|---|
void |
fixCache(ICacheServiceNonLocal<K,V> restoredLateral)
Replaces the current remote cache service handle with the given handle. |
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache. |
String |
getCacheName()
Gets the cacheName attribute of the LateralCache object |
ICacheType.CacheType |
getCacheType()
Gets the cacheType attribute of the LateralCache object |
String |
getEventLoggingExtraInfo()
Gets the extra info for the event log. |
Set<K> |
getGroupKeys(String groupName)
Gets the set of keys of objects currently in the group. |
Set<String> |
getGroupNames()
Gets the set of group names in the cache |
int |
getSize()
Returns the current cache size. |
IStats |
getStatistics()
The NoWait on top does not call out to here yet. |
String |
getStats()
getStats |
CacheStatus |
getStatus()
Returns the cache status. |
protected void |
processDispose()
Synchronously dispose the cache. |
protected ICacheElement<K,V> |
processGet(K key)
The performance costs are too great. |
protected Map<K,ICacheElement<K,V>> |
processGetMatching(String pattern)
Implementation of getMatching. |
protected Map<K,ICacheElement<K,V>> |
processGetMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys. |
protected boolean |
processRemove(K key)
Synchronously remove from the remote cache; if failed, replace the remote handle with a zombie. |
protected void |
processRemoveAll()
Synchronously removeAll from the remote cache; if failed, replace the remote handle with a zombie. |
protected void |
processUpdate(ICacheElement<K,V> ce)
Update lateral. |
String |
toString()
|
| Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging |
|---|
dispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLogging |
| Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
|---|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LateralCache(ILateralCacheAttributes cattr,
ICacheServiceNonLocal<K,V> lateral,
LateralCacheMonitor monitor)
cattr - lateral - monitor - public LateralCache(ILateralCacheAttributes cattr)
cattr - | Method Detail |
|---|
protected void processUpdate(ICacheElement<K,V> ce)
throws IOException
processUpdate in class AbstractAuxiliaryCacheEventLogging<K extends Serializable,V extends Serializable>ce -
IOException
protected ICacheElement<K,V> processGet(K key)
throws IOException
processGet in class AbstractAuxiliaryCacheEventLogging<K extends Serializable,V extends Serializable>key -
IOException
protected Map<K,ICacheElement<K,V>> processGetMatching(String pattern)
throws IOException
AbstractAuxiliaryCacheEventLogging
processGetMatching in class AbstractAuxiliaryCacheEventLogging<K extends Serializable,V extends Serializable>pattern -
IOException
protected Map<K,ICacheElement<K,V>> processGetMultiple(Set<K> keys)
throws IOException
processGetMultiple in class AbstractAuxiliaryCacheEventLogging<K extends Serializable,V extends Serializable>keys -
IOException
public Set<K> getGroupKeys(String groupName)
throws IOException
group -
IOException
public Set<String> getGroupNames()
throws IOException
IOException
protected boolean processRemove(K key)
throws IOException
processRemove in class AbstractAuxiliaryCacheEventLogging<K extends Serializable,V extends Serializable>key -
IOException
protected void processRemoveAll()
throws IOException
processRemoveAll in class AbstractAuxiliaryCacheEventLogging<K extends Serializable,V extends Serializable>IOException
protected void processDispose()
throws IOException
processDispose in class AbstractAuxiliaryCacheEventLogging<K extends Serializable,V extends Serializable>IOExceptionpublic CacheStatus getStatus()
public int getSize()
public ICacheType.CacheType getCacheType()
public String getCacheName()
public void fixCache(ICacheServiceNonLocal<K,V> restoredLateral)
restoredLateral - public String getStats()
public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public String toString()
toString in class Objectpublic String getEventLoggingExtraInfo()
AbstractAuxiliaryCache
getEventLoggingExtraInfo in class AbstractAuxiliaryCache<K extends Serializable,V extends Serializable>public IStats getStatistics()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||