|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCache<K,V>
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging<K,V>
org.apache.jcs.auxiliary.remote.AbstractRemoteAuxiliaryCache<K,V>
org.apache.jcs.auxiliary.remote.RemoteCache<K,V>
public class RemoteCache<K extends Serializable,V extends Serializable>
Client proxy for an RMI remote cache.
This handles gets, updates, and removes. It also initiates failover recovery when an error is encountered.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.jcs.engine.behavior.ICacheType |
|---|
ICacheType.CacheType |
| Field Summary |
|---|
| Fields inherited from class org.apache.jcs.auxiliary.remote.AbstractRemoteAuxiliaryCache |
|---|
cacheName |
| Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
|---|
cacheEventLogger, elementSerializer, keyMatcher |
| Constructor Summary | |
|---|---|
RemoteCache(IRemoteCacheAttributes cattr,
ICacheServiceNonLocal<K,V> remote,
IRemoteCacheListener<K,V> listener)
Constructor for the RemoteCache object. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.jcs.auxiliary.remote.AbstractRemoteAuxiliaryCache |
|---|
fixCache, getAuxiliaryCacheAttributes, getCacheName, getCacheType, getGroupKeys, getGroupNames, getListener, getListenerId, getRemoteCacheAttributes, getRemoteCacheListener, getRemoteCacheService, getSize, getStats, getStatus, getUsingPool, processDispose, processGet, processGetMatching, processGetMultiple, processRemove, processRemoveAll, processUpdate, setListenerId, setRemoteCacheAttributes, setRemoteCacheListener, setRemoteCacheService |
| Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging |
|---|
dispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLogging |
| Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCache |
|---|
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, setCacheEventLogger, setElementSerializer, setKeyMatcher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCache |
|---|
setCacheEventLogger, setElementSerializer |
| Methods inherited from interface org.apache.jcs.engine.behavior.ICache |
|---|
dispose, get, getMatching, getMultiple, remove, removeAll, setKeyMatcher, update |
| Constructor Detail |
|---|
public RemoteCache(IRemoteCacheAttributes cattr,
ICacheServiceNonLocal<K,V> remote,
IRemoteCacheListener<K,V> listener)
cattr - remote - listener - | Method Detail |
|---|
public IStats getStatistics()
getStatistics in interface AuxiliaryCache<K extends Serializable,V extends Serializable>getStatistics in class AbstractRemoteAuxiliaryCache<K extends Serializable,V extends Serializable>
protected void handleException(Exception ex,
String msg,
String eventName)
throws IOException
handleException in class AbstractRemoteAuxiliaryCache<K extends Serializable,V extends Serializable>ex - msg - eventName -
IOExceptionpublic String toString()
toString in class Objectpublic String getEventLoggingExtraInfo()
getEventLoggingExtraInfo in class AbstractAuxiliaryCache<K extends Serializable,V extends Serializable>protected String getIPAddressForService()
Protected for testing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||