org.apache.jcs.auxiliary.remote
Class RemoteCacheNoWaitFacade

java.lang.Object
  extended byorg.apache.jcs.auxiliary.remote.RemoteCacheNoWaitFacade
All Implemented Interfaces:
AuxiliaryCache, ICache, ICacheType, java.io.Serializable

public class RemoteCacheNoWaitFacade
extends java.lang.Object
implements AuxiliaryCache

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.

Author:
asmuts
See Also:
Serialized Form

Field Summary
private  java.lang.String cacheName
           
private static org.apache.commons.logging.Log log
           
 RemoteCacheNoWait[] noWaits
          Description of the Field
(package private)  RemoteCacheAttributes rca
           
 
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)
          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)
          Description of the Method
 ICacheElement get(java.io.Serializable key)
          Synchronously reads from the lateral 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 invokation.
 int getStatus()
          Gets the status attribute of the RemoteCacheNoWaitFacade object
 boolean remove(java.io.Serializable key)
          Adds a remove request to the lateral 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()
          Description of the Method
 void update(ICacheElement ce)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

noWaits

public RemoteCacheNoWait[] noWaits
Description of the Field


cacheName

private java.lang.String cacheName

rca

RemoteCacheAttributes rca
Constructor Detail

RemoteCacheNoWaitFacade

public RemoteCacheNoWaitFacade(RemoteCacheNoWait[] noWaits,
                               RemoteCacheAttributes rca)
Constructs with the given remote cache, and fires events to any listeners.

Parameters:
noWaits -
rca -
Method Detail

getRemoteCacheAttributes

public RemoteCacheAttributes getRemoteCacheAttributes()
Gets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object

Returns:
The remoteCacheAttributes value

setRemoteCacheAttributes

public void setRemoteCacheAttributes(RemoteCacheAttributes rca)
Sets the remoteCacheAttributes attribute of the RemoteCacheNoWaitFacade object

Parameters:
rca - The new remoteCacheAttributes value

update

public void update(ICacheElement ce)
            throws java.io.IOException
Description of the Method

Specified by:
update in interface AuxiliaryCache
Throws:
java.io.IOException

get

public ICacheElement get(java.io.Serializable key)
Synchronously reads from the lateral cache.

Specified by:
get in interface AuxiliaryCache

getGroupKeys

public java.util.Set getGroupKeys(java.lang.String group)
                           throws java.io.IOException
Gets the set of keys of objects currently in the group

Specified by:
getGroupKeys in interface AuxiliaryCache
Throws:
java.io.IOException

remove

public boolean remove(java.io.Serializable key)
Adds a remove request to the lateral cache.

Specified by:
remove in interface AuxiliaryCache

removeAll

public void removeAll()
Adds a removeAll request to the lateral cache.

Specified by:
removeAll in interface AuxiliaryCache

dispose

public void dispose()
Adds a dispose request to the lateral cache.

Specified by:
dispose in interface AuxiliaryCache

getSize

public int getSize()
No lateral invokation.

Specified by:
getSize in interface AuxiliaryCache
Returns:
The size value

getCacheType

public int getCacheType()
Gets the cacheType attribute of the RemoteCacheNoWaitFacade object

Specified by:
getCacheType in interface ICacheType
Returns:
The cacheType value

getCacheName

public java.lang.String getCacheName()
Gets the cacheName attribute of the RemoteCacheNoWaitFacade object

Specified by:
getCacheName in interface AuxiliaryCache
Returns:
The cacheName value

getStatus

public int getStatus()
Gets the status attribute of the RemoteCacheNoWaitFacade object

Specified by:
getStatus in interface AuxiliaryCache
Returns:
The status value

toString

public java.lang.String toString()
Description of the Method


failover

protected void failover(int i)
Description of the Method