Class RemoteHttpCache<K,V>
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCache<K,V>
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheEventLogging<K,V>
org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteAuxiliaryCache<K,V>
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCache<K,V>
- All Implemented Interfaces:
AuxiliaryCache<K,,V> IRemoteCacheClient<K,,V> ICache<K,,V> ICacheType
This uses an http client as the service.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.jcs3.engine.behavior.ICacheType
ICacheType.CacheType -
Field Summary
Fields inherited from class org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteAuxiliaryCache
cacheNameFields inherited from interface org.apache.commons.jcs3.engine.behavior.ICache
NAME_COMPONENT_DELIMITER -
Constructor Summary
ConstructorsConstructorDescriptionRemoteHttpCache(RemoteHttpCacheAttributes remoteHttpCacheAttributes, ICacheServiceNonLocal<K, V> remote, IRemoteCacheListener<K, V> listener, RemoteHttpCacheMonitor monitor) Constructor for the RemoteCache object. -
Method Summary
Modifier and TypeMethodDescriptionGets the extra info for the event log.protected voidhandleException(Exception ex, String msg, String eventName) Nothing right now.Methods inherited from class org.apache.commons.jcs3.auxiliary.remote.AbstractRemoteAuxiliaryCache
fixCache, getAuxiliaryCacheAttributes, getCacheName, getCacheType, getKeySet, getListener, getListenerId, getRemoteCacheAttributes, getRemoteCacheListener, getRemoteCacheService, getSize, getStatistics, getStats, getStatus, getUsingPool, processDispose, processGet, processGetMatching, processRemove, processRemoveAll, processUpdate, setListenerId, setRemoteCacheAttributes, setRemoteCacheListener, setRemoteCacheServiceMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheEventLogging
dispose, disposeWithEventLogging, get, getMatching, getMatchingWithEventLogging, getMultiple, getMultipleWithEventLogging, getWithEventLogging, remove, removeAll, removeAllWithEventLogging, removeWithEventLogging, update, updateWithEventLoggingMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCache
createICacheEvent, createICacheEvent, getCacheEventLogger, getElementSerializer, getKeyMatcher, logApplicationEvent, logError, logICacheEvent, processGetMultiple, setCacheEventLogger, setElementSerializer, setKeyMatcherMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCache
setCacheEventLogger, setElementSerializerMethods inherited from interface org.apache.commons.jcs3.engine.behavior.ICache
dispose, get, getMatching, getMultiple, remove, removeAll, setKeyMatcher, update
-
Constructor Details
-
RemoteHttpCache
public RemoteHttpCache(RemoteHttpCacheAttributes remoteHttpCacheAttributes, ICacheServiceNonLocal<K, V> remote, IRemoteCacheListener<K, V> listener, RemoteHttpCacheMonitor monitor) Constructor for the RemoteCache object. This object communicates with a remote cache server. One of these exists for each region. This also holds a reference to a listener. The same listener is used for all regions for one remote server. Holding a reference to the listener allows this object to know the listener id assigned by the remote cache.- Parameters:
remoteHttpCacheAttributes-remote-listener-monitor- the cache monitor
-
-
Method Details
-
handleException
Nothing right now. This should setup a zombie and initiate recovery.- Specified by:
handleExceptionin classAbstractRemoteAuxiliaryCache<K,V> - Parameters:
ex-msg-eventName-- Throws:
IOException
-
getEventLoggingExtraInfo
Description copied from class:AbstractAuxiliaryCacheGets the extra info for the event log.- Specified by:
getEventLoggingExtraInfoin classAbstractAuxiliaryCache<K,V> - Returns:
- url of service
-
getRemoteHttpCacheAttributes
- Returns:
- the remoteHttpCacheAttributes
-