org.apache.jcs.auxiliary.remote.http.server
Class RemoteCacheServiceAdaptor<K extends Serializable,V extends Serializable>

java.lang.Object
  extended by org.apache.jcs.auxiliary.remote.http.server.RemoteCacheServiceAdaptor<K,V>

public class RemoteCacheServiceAdaptor<K extends Serializable,V extends Serializable>
extends Object

The Servlet deserializes the request object. The request object is passed to the processor. The processor then calls the service which does the work of talking to the cache.

This is essentially an adaptor on top of the service.


Constructor Summary
protected RemoteCacheServiceAdaptor()
          This is for testing without the factory.
  RemoteCacheServiceAdaptor(CompositeCacheManager cacheManager)
          Create a process with a cache manager.
 
Method Summary
 ICacheServiceNonLocal<K,V> getRemoteCacheService()
           
<T> RemoteCacheResponse<T>
processRequest(RemoteCacheRequest<K,V> request)
          Processes the request.
 void setRemoteCacheService(ICacheServiceNonLocal<K,V> remoteHttpCacheService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteCacheServiceAdaptor

protected RemoteCacheServiceAdaptor()
This is for testing without the factory.


RemoteCacheServiceAdaptor

public RemoteCacheServiceAdaptor(CompositeCacheManager cacheManager)
Create a process with a cache manager.

Parameters:
cacheManager -
Method Detail

processRequest

public <T> RemoteCacheResponse<T> processRequest(RemoteCacheRequest<K,V> request)
Processes the request. It will call the appropriate method on the service

Parameters:
request -
Returns:
RemoteHttpCacheResponse, never null

setRemoteCacheService

public void setRemoteCacheService(ICacheServiceNonLocal<K,V> remoteHttpCacheService)
Parameters:
remoteHttpCacheService - the remoteHttpCacheService to set

getRemoteCacheService

public ICacheServiceNonLocal<K,V> getRemoteCacheService()
Returns:
the remoteHttpCacheService


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.