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.CacheTypecacheName| 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, setRemoteCacheServicedispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLoggingcreateICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, 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)
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 - IOExceptionpublic String toString()
public String getEventLoggingExtraInfo()
getEventLoggingExtraInfo in class AbstractAuxiliaryCache<K,V>protected String getIPAddressForService()
Protected for testing.
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.