|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.remote.http.client.RemoteHttpCacheFactory
public class RemoteHttpCacheFactory
The RemoteCacheFactory creates remote caches for the cache hub. It returns a no wait facade which is a wrapper around a no wait. The no wait object is either an active connection to a remote cache or a balking zombie if the remote cache is not accessible. It should be transparent to the clients.
| Constructor Summary | |
|---|---|
RemoteHttpCacheFactory()
|
|
| Method Summary | ||
|---|---|---|
|
createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
For LOCAL clients we get a handle to all the failovers, but we do not register a listener with them. |
|
static HashMap<String,RemoteCacheNoWaitFacade<? extends Serializable,? extends Serializable>> |
getFacades()
The facades are what the cache hub talks to. |
|
String |
getName()
Gets the name attribute of the RemoteCacheFactory object |
|
void |
setName(String name)
Sets the name attribute of the RemoteCacheFactory object |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteHttpCacheFactory()
| Method Detail |
|---|
public <K extends Serializable,V extends Serializable> AuxiliaryCache<K,V> createCache(AuxiliaryCacheAttributes iaca,
ICompositeCacheManager cacheMgr,
ICacheEventLogger cacheEventLogger,
IElementSerializer elementSerializer)
The failover runner will get a cache from the manager. When the primary is restored it will tell the manager for the failover to deregister the listener.
createCache in interface AuxiliaryCacheFactoryiaca - cacheMgr - cacheEventLogger - elementSerializer -
public String getName()
getName in interface AuxiliaryCacheFactorypublic void setName(String name)
setName in interface AuxiliaryCacheFactoryname - The new name valuepublic static HashMap<String,RemoteCacheNoWaitFacade<? extends Serializable,? extends Serializable>> getFacades()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||