org.openprivacy.reptile.cache.sequence
Class SequenceCache

java.lang.Object
  |
  +--org.openprivacy.reptile.cache.sequence.SequenceCache

public class SequenceCache
extends java.lang.Object

A handle for items within the sequence cache.

Version:
$Id: SequenceCache.java,v 1.10 2002/02/27 08:50:53 burton Exp $
Author:
burtonator

Constructor Summary
SequenceCache()
           
 
Method Summary
 boolean contains(SequenceCacheHandle handle)
          Return true if the SequenceCache contains the given handle.
 SequenceCacheEntry fetch(SequenceCacheHandle handle)
          Fetch a sequence from the memory cache if it is available.
 SequenceCacheEntry fetch(SequenceDispatchEntry sde, ParameterPasser params)
           
 void flush()
          Flush all entries from the cache.
 void flush(SequenceCacheHandle handle)
          Flush the given cache hanle.
 void flush(java.lang.String location)
          Remove from the cache any entry which points has the given location and contentType..
 int getCacheHits()
          Get the value of cacheHits.
 int getCacheMisses()
          Get the value of cacheMisses.
 java.util.Enumeration getEntries()
          Get all known entries from the cache.
static SequenceCache getInstance()
          Get an instance of the SequenceCache.
 void incrementCacheHits()
          Increase the cache hits by one.
 void incrementCacheMisses()
          Increase the cache hits by one.
 void setCacheHits(int cacheHits)
          Set the value of cacheHits.
 void setCacheMisses(int cacheMisses)
          Set the value of cacheMisses.
 void store(SequenceCacheHandle handle, java.lang.String content)
          Store content within the cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceCache

public SequenceCache()
Method Detail

fetch

public SequenceCacheEntry fetch(SequenceDispatchEntry sde,
                                ParameterPasser params)
                         throws java.lang.Exception
java.lang.Exception
See Also:
fetch(org.openprivacy.reptile.xslt.SequenceDispatchEntry, org.openprivacy.reptile.util.ParameterPasser)

fetch

public SequenceCacheEntry fetch(SequenceCacheHandle handle)
                         throws java.lang.Exception
Fetch a sequence from the memory cache if it is available.

java.lang.Exception

contains

public boolean contains(SequenceCacheHandle handle)
Return true if the SequenceCache contains the given handle.


store

public void store(SequenceCacheHandle handle,
                  java.lang.String content)
           throws java.lang.Exception
Store content within the cache.

java.lang.Exception

flush

public void flush()
Flush all entries from the cache.


flush

public void flush(SequenceCacheHandle handle)
Flush the given cache hanle.


flush

public void flush(java.lang.String location)
Remove from the cache any entry which points has the given location and contentType..


getEntries

public java.util.Enumeration getEntries()
Get all known entries from the cache.


getInstance

public static SequenceCache getInstance()
Get an instance of the SequenceCache.


setCacheHits

public void setCacheHits(int cacheHits)
Set the value of cacheHits.


getCacheHits

public int getCacheHits()
Get the value of cacheHits.


getCacheMisses

public int getCacheMisses()
Get the value of cacheMisses.


setCacheMisses

public void setCacheMisses(int cacheMisses)
Set the value of cacheMisses.


incrementCacheHits

public void incrementCacheHits()
Increase the cache hits by one.


incrementCacheMisses

public void incrementCacheMisses()
Increase the cache hits by one.