com.caucho.server.cache
Class AbstractCache

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

public class AbstractCache
extends java.lang.Object

Cached response.


Constructor Summary
AbstractCache()
           
 
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 setEntries(int entries)
          Sets the max number of entries.
 void setPath(Path path)
          Sets the path to the cache directory.
 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

AbstractCache

public AbstractCache()
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.


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).


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.