org.apache.jcs.auxiliary.remote.http.client
Class RemoteHttpCache
java.lang.Object
org.apache.jcs.auxiliary.AbstractAuxiliaryCache
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheEventLogging
org.apache.jcs.auxiliary.remote.AbstractRemoteAuxiliaryCache
org.apache.jcs.auxiliary.remote.http.client.RemoteHttpCache
- All Implemented Interfaces:
- java.io.Serializable, AuxiliaryCache, IRemoteCacheClient, ICache, ICacheType
public class RemoteHttpCache
- extends AbstractRemoteAuxiliaryCache
This uses an http client as the service.
- See Also:
- Serialized Form
Methods inherited from class org.apache.jcs.auxiliary.remote.AbstractRemoteAuxiliaryCache |
fixCache, getAuxiliaryCacheAttributes, getCacheName, getCacheType, getGroupKeys, getListener, getListenerId, getRemoteCacheAttributes, getRemoteCacheListener, getRemoteCacheService, getSize, getStatistics, 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, toString, wait, wait, wait |
RemoteHttpCache
public RemoteHttpCache(RemoteHttpCacheAttributes remoteHttpCacheAttributes,
IRemoteCacheService remote,
IRemoteCacheListener listener)
- 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
-
handleException
protected void handleException(java.lang.Exception ex,
java.lang.String msg,
java.lang.String eventName)
throws java.io.IOException
- Nothing right now. This should setup a zombie and initiate recovery.
- Specified by:
handleException
in class AbstractRemoteAuxiliaryCache
- Parameters:
ex
- msg
- eventName
-
- Throws:
java.io.IOException
getEventLoggingExtraInfo
public java.lang.String getEventLoggingExtraInfo()
- Description copied from class:
AbstractAuxiliaryCache
- Gets the extra info for the event log.
- Specified by:
getEventLoggingExtraInfo
in class AbstractAuxiliaryCache
- Returns:
- url of service
setRemoteHttpCacheAttributes
public void setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
- Parameters:
remoteHttpCacheAttributes
- the remoteHttpCacheAttributes to set
getRemoteHttpCacheAttributes
public RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
- Returns:
- the remoteHttpCacheAttributes
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.