com.caucho.server.cache
Class AbstractProxyCache

java.lang.Object
  extended by com.caucho.server.cache.AbstractProxyCache
Direct Known Subclasses:
Cache

public class AbstractProxyCache
extends java.lang.Object

Cached response.


Constructor Summary
AbstractProxyCache()
           
 
Method Summary
 void clear()
          Clears the cache.
 FilterChain createFilterChain(FilterChain next, WebApp app)
          Creates the filter.
 long getHitCount()
          Returns the hit count.
 int getMaxEntrySize()
          Sets the max entry size of the cache
 long getMemoryBlockHitCount()
          Returns the memory block hit count.
 long getMemoryBlockMissCount()
          Returns the memory block miss count.
 long getMissCount()
          Returns the miss count.
 Path getPath()
          Returns the path from the cache directory.
 boolean isEnable()
          Return true if enabled.
 void setDir(Path path)
          Sets the path to the cache directory (backwards compatibility).
 void setDiskSize(Bytes size)
          Sets the disk size of the cache
 void setEnable(boolean isEnabled)
          Set true if enabled.
 void setEnableMmap(boolean isEnable)
           
 void setEntries(int entries)
          Sets the max number of entries.
 void setMemorySize(Bytes bytes)
           
 void setPath(Path path)
          Sets the path to the cache directory.
 void setRewriteVaryAsPrivate(boolean isEnable)
           
 void setSize(Bytes size)
          Sets the size of the the cache (backwards compatibility).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractProxyCache

public AbstractProxyCache()
Method Detail

setPath

public void setPath(Path path)
Sets the path to the cache directory.


getPath

public Path getPath()
Returns the path from the cache directory.


setDiskSize

public void setDiskSize(Bytes size)
Sets the disk size of the cache


getMaxEntrySize

public int getMaxEntrySize()
Sets the max entry size of the cache


setEnable

public void setEnable(boolean isEnabled)
Set true if enabled.


isEnable

public boolean isEnable()
Return true if enabled.


setEntries

public void setEntries(int entries)
Sets the max number of entries.


setEnableMmap

public void setEnableMmap(boolean isEnable)

setDir

public void setDir(Path path)
Sets the path to the cache directory (backwards compatibility).


setSize

public void setSize(Bytes size)
Sets the size of the the cache (backwards compatibility).


setMemorySize

public void setMemorySize(Bytes bytes)

setRewriteVaryAsPrivate

public void setRewriteVaryAsPrivate(boolean isEnable)

createFilterChain

public FilterChain createFilterChain(FilterChain next,
                                     WebApp app)
Creates the filter.


clear

public void clear()
Clears the cache.


getHitCount

public long getHitCount()
Returns the hit count.


getMissCount

public long getMissCount()
Returns the miss count.


getMemoryBlockHitCount

public long getMemoryBlockHitCount()
Returns the memory block hit count.


getMemoryBlockMissCount

public long getMemoryBlockMissCount()
Returns the memory block miss count.