Class RemoteCache<K,V> 
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCache<K,V>
 
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheEventLogging<K,V>
 
org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteAuxiliaryCache<K,V>
 
org.apache.commons.jcs3.auxiliary.remote.RemoteCache<K,V> 
- All Implemented Interfaces:
- AuxiliaryCache<K,,- V> - IRemoteCacheClient<K,,- V> - ICache<K,,- V> - ICacheType
Client proxy for an RMI remote cache.
 
This handles gets, updates, and removes. It also initiates failover recovery when an error is encountered.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheTypeICacheType.CacheType
- 
Field SummaryFields inherited from class org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteAuxiliaryCachecacheNameFields inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheNAME_COMPONENT_DELIMITER
- 
Constructor SummaryConstructorsConstructorDescriptionRemoteCache(IRemoteCacheAttributes cattr, ICacheServiceNonLocal<K, V> remote, IRemoteCacheListener<K, V> listener, RemoteCacheMonitor monitor) Constructor for the RemoteCache object.
- 
Method SummaryModifier and TypeMethodDescriptionGets the extra info for the event log.protected AbstractRemoteCacheNoWaitFacade<K,V> Get facadeprotected StringIP address for the service, if one is stored.protected voidhandleException(Exception ex, String msg, String eventName) Handles exception by disabling the remote cache service before re-throwing the exception in the form of an IOException.protected voidsetFacade(AbstractRemoteCacheNoWaitFacade<K, V> facade) Set facadetoString()Debugging info.Methods inherited from class org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteAuxiliaryCachefixCache, getAuxiliaryCacheAttributes, getCacheName, getCacheType, getKeySet, getListener, getListenerId, getRemoteCacheAttributes, getRemoteCacheListener, getRemoteCacheService, getSize, getStats, getStatus, getUsingPool, processDispose, processGet, processGetMatching, processRemove, processRemoveAll, processUpdate, setListenerId, setRemoteCacheAttributes, setRemoteCacheListener, setRemoteCacheServiceMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheEventLoggingdispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLoggingMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCachecreateICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, processGetMultiple, setCacheEventLogger, setElementSerializer, setKeyMatcherMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCachesetCacheEventLogger, setElementSerializerMethods inherited from interface org.apache.commons.jcs3.engine.behavior.ICachedispose, get, getMatching, getMultiple, remove, removeAll, setKeyMatcher, update
- 
Constructor Details- 
RemoteCachepublic RemoteCache(IRemoteCacheAttributes cattr, ICacheServiceNonLocal<K, V> remote, IRemoteCacheListener<K, V> listener, RemoteCacheMonitor monitor) Constructor for the RemoteCache object. This object communicates with a remote cache server. One of these exists for each region. This also holds a reference to a listener. The same listener is used for all regions for one remote server. Holding a reference to the listener allows this object to know the listener id assigned by the remote cache.- Parameters:
- cattr- the cache configuration
- remote- the remote cache server handle
- listener- a listener
- monitor- the cache monitor
 
 
- 
- 
Method Details- 
getStatistics- Specified by:
- getStatisticsin interface- AuxiliaryCache<K,- V> 
- Overrides:
- getStatisticsin class- AbstractRemoteAuxiliaryCache<K,- V> 
- Returns:
- IStats object
 
- 
setFacadeSet facade- Parameters:
- facade- the facade to set
 
- 
getFacadeGet facade- Returns:
- the facade
 
- 
handleExceptionHandles exception by disabling the remote cache service before re-throwing the exception in the form of an IOException.- Specified by:
- handleExceptionin class- AbstractRemoteAuxiliaryCache<K,- V> 
- Parameters:
- ex-
- msg-
- eventName-
- Throws:
- IOException
 
- 
toStringDebugging info.
- 
getEventLoggingExtraInfoGets the extra info for the event log.- Specified by:
- getEventLoggingExtraInfoin class- AbstractAuxiliaryCache<K,- V> 
- Returns:
- disk location
 
- 
getIPAddressForServiceIP address for the service, if one is stored.Protected for testing. - Returns:
- String
 
 
-