org.apache.jcs.auxiliary.remote.http.client
Class RemoteHttpCacheFactory

java.lang.Object
  extended by org.apache.jcs.auxiliary.remote.http.client.RemoteHttpCacheFactory
All Implemented Interfaces:
AuxiliaryCacheFactory

public class RemoteHttpCacheFactory
extends java.lang.Object
implements AuxiliaryCacheFactory

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
 AuxiliaryCache 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 java.util.HashMap getFacades()
          The facades are what the cache hub talks to.
 java.lang.String getName()
          Gets the name attribute of the RemoteCacheFactory object
 void setName(java.lang.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

RemoteHttpCacheFactory

public RemoteHttpCacheFactory()
Method Detail

createCache

public AuxiliaryCache 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. We create the RemoteCacheManager, but we do not get a cache.

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.

Specified by:
createCache in interface AuxiliaryCacheFactory
Parameters:
iaca -
cacheMgr -
cacheEventLogger -
elementSerializer -
Returns:
AuxiliaryCache

getName

public java.lang.String getName()
Gets the name attribute of the RemoteCacheFactory object

Specified by:
getName in interface AuxiliaryCacheFactory
Returns:
The name value

setName

public void setName(java.lang.String name)
Sets the name attribute of the RemoteCacheFactory object

Specified by:
setName in interface AuxiliaryCacheFactory
Parameters:
name - The new name value

getFacades

public static java.util.HashMap getFacades()
The facades are what the cache hub talks to.

Returns:
Returns the facades.


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.