public class RemoteCache<K,V> extends AbstractRemoteAuxiliaryCache<K,V>
This handles gets, updates, and removes. It also initiates failover recovery when an error is encountered.
ICacheType.CacheType
cacheName
Constructor and Description |
---|
RemoteCache(IRemoteCacheAttributes cattr,
ICacheServiceNonLocal<K,V> remote,
IRemoteCacheListener<K,V> listener,
RemoteCacheMonitor monitor)
Constructor for the RemoteCache object.
|
Modifier and Type | Method and Description |
---|---|
String |
getEventLoggingExtraInfo()
Gets the extra info for the event log.
|
protected AbstractRemoteCacheNoWaitFacade<K,V> |
getFacade()
Get facade
|
protected String |
getIPAddressForService()
IP address for the service, if one is stored.
|
IStats |
getStatistics() |
protected void |
handleException(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 void |
setFacade(AbstractRemoteCacheNoWaitFacade<K,V> facade)
Set facade
|
String |
toString()
Debugging info.
|
fixCache, getAuxiliaryCacheAttributes, getCacheName, getCacheType, getKeySet, getListener, getListenerId, getRemoteCacheAttributes, getRemoteCacheListener, getRemoteCacheService, getSize, getStats, getStatus, getUsingPool, processDispose, processGet, processGetMatching, processGetMultiple, processRemove, processRemoveAll, processUpdate, setListenerId, setRemoteCacheAttributes, setRemoteCacheListener, setRemoteCacheService
dispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLogging
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setCacheEventLogger, setElementSerializer
dispose, get, getMatching, getMultiple, remove, removeAll, setKeyMatcher, update
public RemoteCache(IRemoteCacheAttributes cattr, ICacheServiceNonLocal<K,V> remote, IRemoteCacheListener<K,V> listener, RemoteCacheMonitor monitor)
cattr
- the cache configurationremote
- the remote cache server handlelistener
- a listenermonitor
- the cache monitorpublic IStats getStatistics()
getStatistics
in interface AuxiliaryCache<K,V>
getStatistics
in class AbstractRemoteAuxiliaryCache<K,V>
protected void setFacade(AbstractRemoteCacheNoWaitFacade<K,V> facade)
facade
- the facade to setprotected AbstractRemoteCacheNoWaitFacade<K,V> getFacade()
protected void handleException(Exception ex, String msg, String eventName) throws IOException
handleException
in class AbstractRemoteAuxiliaryCache<K,V>
ex
- msg
- eventName
- IOException
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache<K,V>
protected String getIPAddressForService()
Protected for testing.
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.