|
||||||||||
| 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.remote.AbstractRemoteCacheNoWaitFacade<K,V>
public abstract class AbstractRemoteCacheNoWaitFacade<K extends Serializable,V extends Serializable>
An abstract base for the No Wait Facade. Different implementations will failover differently.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.jcs.engine.behavior.ICacheType |
|---|
ICacheType.CacheType |
| Field Summary | |
|---|---|
RemoteCacheNoWait<K,V>[] |
noWaits
The connection to a remote server, or a zombie. |
protected IRemoteCacheAttributes |
remoteCacheAttributes
holds failover and cluster information |
| Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
|---|
cacheEventLogger, elementSerializer, keyMatcher |
| Constructor Summary | |
|---|---|
AbstractRemoteCacheNoWaitFacade(RemoteCacheNoWait<K,V>[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
Constructs with the given remote cache, and fires events to any listeners. |
|
| Method Summary | |
|---|---|
void |
dispose()
Adds a dispose request to the remote cache. |
ICacheElement<K,V> |
get(K key)
Synchronously reads from the remote cache. |
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache. |
String |
getCacheName()
Gets the cacheName attribute of the RemoteCacheNoWaitFacade object. |
ICacheType.CacheType |
getCacheType()
Gets the cacheType attribute of the RemoteCacheNoWaitFacade object. |
protected ICompositeCacheManager |
getCompositeCacheManager()
|
String |
getEventLoggingExtraInfo()
This typically returns end point info . |
Set<K> |
getGroupKeys(String group)
Gets the set of keys of objects currently in the group. |
Set<String> |
getGroupNames()
Gets the group names in the cache |
Map<K,ICacheElement<K,V>> |
getMatching(String pattern)
Synchronously read from the remote cache. |
Map<K,ICacheElement<K,V>> |
getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys. |
IRemoteCacheAttributes |
getRemoteCacheAttributes()
Gets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object |
int |
getSize()
No remote invocation. |
IStats |
getStatistics()
|
String |
getStats()
getStats |
CacheStatus |
getStatus()
Gets the status attribute of the RemoteCacheNoWaitFacade object Return ALIVE if any are alive. |
boolean |
remove(K key)
Adds a remove request to the remote cache. |
void |
removeAll()
Adds a removeAll request to the remote cache. |
protected void |
setCompositeCacheManager(ICompositeCacheManager compositeCacheManager)
|
void |
setRemoteCacheAttributes(IRemoteCacheAttributes rca)
Sets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object. |
String |
toString()
String form of some of the configuration information for the remote cache. |
void |
update(ICacheElement<K,V> ce)
Put an element in the cache. |
| 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 |
| Field Detail |
|---|
public RemoteCacheNoWait<K extends Serializable,V extends Serializable>[] noWaits
protected IRemoteCacheAttributes remoteCacheAttributes
| Constructor Detail |
|---|
public AbstractRemoteCacheNoWaitFacade(RemoteCacheNoWait<K,V>[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
noWaits - rca - cacheMgr - cacheEventLogger - elementSerializer - | Method Detail |
|---|
public void update(ICacheElement<K,V> ce)
throws IOException
ce -
IOExceptionpublic ICacheElement<K,V> get(K key)
key -
public Map<K,ICacheElement<K,V>> getMatching(String pattern)
throws IOException
pattern -
IOExceptionpublic Map<K,ICacheElement<K,V>> getMultiple(Set<K> keys)
keys -
public Set<K> getGroupKeys(String group)
throws IOException
group -
IOException
public Set<String> getGroupNames()
throws IOException
IOExceptionpublic boolean remove(K key)
key -
public void removeAll()
public void dispose()
public int getSize()
public ICacheType.CacheType getCacheType()
public String getCacheName()
public CacheStatus getStatus()
Return ALIVE if any are alive.
public String toString()
toString in class Objectpublic AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public String getStats()
public IStats getStatistics()
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo in class AbstractAuxiliaryCache<K extends Serializable,V extends Serializable>public IRemoteCacheAttributes getRemoteCacheAttributes()
public void setRemoteCacheAttributes(IRemoteCacheAttributes rca)
rca - The new remoteCacheAttributes valueprotected void setCompositeCacheManager(ICompositeCacheManager compositeCacheManager)
compositeCacheManager - the compositeCacheManager to setprotected ICompositeCacheManager getCompositeCacheManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||