|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.remote.RemoteCacheNoWaitFacade
public class RemoteCacheNoWaitFacade
Used to provide access to multiple services under nowait protection. Factory should construct NoWaitFacade to give to the composite cache out of caches it constructs from the varies manager to lateral services.
Typically, we only connect to one remote server per facade. We use a list of one RemoteCacheNoWait.
| Field Summary | |
|---|---|
RemoteCacheNoWait[] |
noWaits
The connection to a remote server, or a zombie. |
protected RemoteCacheAttributes |
remoteCacheAttributes
holds failover and cluster information |
| Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType |
|---|
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE |
| Constructor Summary | |
|---|---|
RemoteCacheNoWaitFacade(RemoteCacheNoWait[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr)
Constructs with the given remote cache, and fires events to any listeners. |
|
| Method Summary | |
|---|---|
void |
dispose()
Adds a dispose request to the lateral cache. |
protected void |
failover(int i)
Begin the failover process if this is a local cache. |
ICacheElement |
get(java.io.Serializable key)
Synchronously reads from the remote cache. |
AuxiliaryCacheAttributes |
getAuxiliaryCacheAttributes()
This returns the generic attributes for an auxiliary cache. |
java.lang.String |
getCacheName()
Gets the cacheName attribute of the RemoteCacheNoWaitFacade object. |
int |
getCacheType()
Gets the cacheType attribute of the RemoteCacheNoWaitFacade object. |
java.util.Set |
getGroupKeys(java.lang.String group)
Gets the set of keys of objects currently in the group. |
RemoteCacheAttributes |
getRemoteCacheAttributes()
Gets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object |
int |
getSize()
No lateral invocation. |
IStats |
getStatistics()
Returns the historical and statistical data for a region's auxiliary cache. |
java.lang.String |
getStats()
getStats |
int |
getStatus()
Gets the status attribute of the RemoteCacheNoWaitFacade object Return ALIVE if any are alive. |
boolean |
remove(java.io.Serializable key)
Adds a remove request to the remote cache. |
void |
removeAll()
Adds a removeAll request to the lateral cache. |
void |
setRemoteCacheAttributes(RemoteCacheAttributes rca)
Sets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object. |
java.lang.String |
toString()
String form of some of the configuratin information for the remote cache. |
void |
update(ICacheElement ce)
Put an element in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public RemoteCacheNoWait[] noWaits
protected RemoteCacheAttributes remoteCacheAttributes
| Constructor Detail |
|---|
public RemoteCacheNoWaitFacade(RemoteCacheNoWait[] noWaits,
RemoteCacheAttributes rca,
ICompositeCacheManager cacheMgr)
noWaits - rca - cacheMgr - | Method Detail |
|---|
public RemoteCacheAttributes getRemoteCacheAttributes()
public void setRemoteCacheAttributes(RemoteCacheAttributes rca)
rca - The new remoteCacheAttributes value
public void update(ICacheElement ce)
throws java.io.IOException
update in interface AuxiliaryCacheupdate in interface ICachece -
java.io.IOExceptionpublic ICacheElement get(java.io.Serializable key)
get in interface AuxiliaryCacheget in interface ICachekey -
public java.util.Set getGroupKeys(java.lang.String group)
throws java.io.IOException
getGroupKeys in interface AuxiliaryCachegroup -
java.io.IOExceptionpublic boolean remove(java.io.Serializable key)
remove in interface AuxiliaryCacheremove in interface ICachekey -
public void removeAll()
removeAll in interface AuxiliaryCacheremoveAll in interface ICachepublic void dispose()
dispose in interface AuxiliaryCachedispose in interface ICachepublic int getSize()
getSize in interface AuxiliaryCachegetSize in interface ICachepublic int getCacheType()
getCacheType in interface ICacheTypepublic java.lang.String getCacheName()
getCacheName in interface AuxiliaryCachegetCacheName in interface ICachepublic int getStatus()
Return ALIVE if any are alive.
getStatus in interface AuxiliaryCachegetStatus in interface ICachepublic java.lang.String toString()
toString in class java.lang.Objectprotected void failover(int i)
i - The no wait in error.public AuxiliaryCacheAttributes getAuxiliaryCacheAttributes()
AuxiliaryCache
getAuxiliaryCacheAttributes in interface AuxiliaryCachepublic java.lang.String getStats()
getStats in interface ICachepublic IStats getStatistics()
AuxiliaryCache
getStatistics in interface AuxiliaryCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||