wttools.protocols.cache
Class CacheContext

java.lang.Object
  |
  +--wttools.protocols.cache.CacheContext
All Implemented Interfaces:
java.io.Serializable

public class CacheContext
extends java.lang.Object
implements java.io.Serializable

CacheContext.java Created: Tue Oct 30 18:50:40 2001

Version:
$Revision: 1.1 $
Author:
Artur Hefczyc
See Also:
Serialized Form

Field Summary
protected  java.util.Hashtable activeConnections
          Hashtbale for keeping active connections for use if there is no data in cache buffers.
protected  java.util.Hashtable diskCache
          Hashtable for keeping buffers with not recently and not most often used data from the net.
protected  java.util.Hashtable ramCache
          Hashtable for keeping buffers with recently and most often used data from the net.
 
Constructor Summary
CacheContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ramCache

protected java.util.Hashtable ramCache
Hashtable for keeping buffers with recently and most often used data from the net. These buffers are kept in ram memory. As keys is used CacheKey class which currently contains only URI string.

diskCache

protected java.util.Hashtable diskCache
Hashtable for keeping buffers with not recently and not most often used data from the net. These buffers are stored in hard disk for later use. As keys is used CacheKey class which currently contains only URI string.

activeConnections

protected java.util.Hashtable activeConnections
Hashtbale for keeping active connections for use if there is no data in cache buffers. As keys should be hosts addresses or IP numbers
Constructor Detail

CacheContext

public CacheContext()


Copyright GNU, wttools developers Team.