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)
Constructor for the RemoteCache object.
|
Modifier and Type | Method and Description |
---|---|
String |
getEventLoggingExtraInfo()
Gets the extra info for the event log.
|
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.
|
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)
cattr
- remote
- listener
- public IStats getStatistics()
getStatistics
in interface AuxiliaryCache<K,V>
getStatistics
in class AbstractRemoteAuxiliaryCache<K,V>
protected void handleException(Exception ex, String msg, String eventName) throws IOException
handleException
in class AbstractRemoteAuxiliaryCache<K,V>
ex
- msg
- eventName
- IOException
public String toString()
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache<K,V>
protected String getIPAddressForService()
Protected for testing.
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.