|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCache
org.apache.jcs.auxiliary.remote.AbstractRemoteCacheNoWaitFacade
public abstract class AbstractRemoteCacheNoWaitFacade
An abstract base for the No Wait Facade. Different implmentations will failover differently.
Field Summary | |
---|---|
RemoteCacheNoWait[] |
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 |
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
Constructor Summary | |
---|---|
AbstractRemoteCacheNoWaitFacade(RemoteCacheNoWait[] 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 |
get(Serializable 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. |
int |
getCacheType()
Gets the cacheType attribute of the RemoteCacheNoWaitFacade object. |
protected ICompositeCacheManager |
getCompositeCacheManager()
|
String |
getEventLoggingExtraInfo()
This typically returns end point info . |
Set |
getGroupKeys(String group)
Gets the set of keys of objects currently in the group. |
Map |
getMatching(String pattern)
Synchronously read from the remote cache. |
Map |
getMultiple(Set 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 |
int |
getStatus()
Gets the status attribute of the RemoteCacheNoWaitFacade object |
boolean |
remove(Serializable 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 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[] noWaits
protected IRemoteCacheAttributes remoteCacheAttributes
Constructor Detail |
---|
public AbstractRemoteCacheNoWaitFacade(RemoteCacheNoWait[] noWaits, RemoteCacheAttributes rca, ICompositeCacheManager cacheMgr, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
noWaits
- rca
- cacheMgr
- cacheEventLogger
- elementSerializer
- Method Detail |
---|
public void update(ICacheElement ce) throws IOException
ce
-
IOException
public ICacheElement get(Serializable key)
key
-
public Map getMatching(String pattern) throws IOException
pattern
-
IOException
public Map getMultiple(Set keys)
keys
-
public Set getGroupKeys(String group) throws IOException
group
-
IOException
public boolean remove(Serializable key)
key
-
public void removeAll()
public void dispose()
public int getSize()
public int getCacheType()
public String getCacheName()
public int getStatus()
Return ALIVE if any are alive.
public String toString()
toString
in class Object
public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
public String getStats()
public IStats getStatistics()
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache
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 |