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.CacheTypecacheNameNAME_COMPONENT_DELIMITER| 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, processRemove, processRemoveAll, processUpdate, setListenerId, setRemoteCacheAttributes, setRemoteCacheListener, setRemoteCacheServicedispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLoggingcreateICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, processGetMultiple, setCacheEventLogger, setElementSerializer, setKeyMatcherclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetCacheEventLogger, setElementSerializerdispose, get, getMatching, getMultiple, remove, removeAll, setKeyMatcher, updatepublic 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 - IOExceptionpublic String toString()
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo in class AbstractAuxiliaryCache<K,V>protected String getIPAddressForService()
Protected for testing.
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.