public class RemoteCache extends AbstractRemoteAuxiliaryCache
This handles gets, updates, and removes. It also initiates failover recovery when an error is encountered.
cacheNamecacheEventLogger, elementSerializer, keyMatcherCACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE| Constructor and Description |
|---|
RemoteCache(IRemoteCacheAttributes cattr,
IRemoteCacheService remote,
IRemoteCacheListener listener)
Constructor for the RemoteCache object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEventLoggingExtraInfo()
Gets the extra info for the event log.
|
protected java.lang.String |
getIPAddressForService()
IP address for the service, if one is stored.
|
IStats |
getStatistics() |
protected void |
handleException(java.lang.Exception ex,
java.lang.String msg,
java.lang.String eventName)
Handles exception by disabling the remote cache service before re-throwing the exception in
the form of an IOException.
|
java.lang.String |
toString()
Debugging info.
|
fixCache, getAuxiliaryCacheAttributes, getCacheName, getCacheType, getGroupKeys, 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, IRemoteCacheService remote, IRemoteCacheListener listener)
cattr - remote - listener - public IStats getStatistics()
getStatistics in interface AuxiliaryCachegetStatistics in class AbstractRemoteAuxiliaryCacheprotected void handleException(java.lang.Exception ex,
java.lang.String msg,
java.lang.String eventName)
throws java.io.IOException
handleException in class AbstractRemoteAuxiliaryCacheex - msg - eventName - java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getEventLoggingExtraInfo()
getEventLoggingExtraInfo in class AbstractAuxiliaryCacheprotected java.lang.String getIPAddressForService()
Protected for testing.
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.