org.sourcejammer.util
Class NodeCache

java.lang.Object
  |
  +--org.sourcejammer.util.NodeCache
All Implemented Interfaces:
Cache

public class NodeCache
extends java.lang.Object
implements Cache

Title: Description: Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:

Field Summary
private  CachedObjectMasterList masterList
           
private  java.util.Hashtable mhshCache
           
 
Constructor Summary
private NodeCache()
           
  NodeCache(CachedObjectMasterList master)
           
 
Method Summary
 void addToCache(Node nd)
           
protected  java.util.Hashtable getCache()
           
static void main(java.lang.String[] args)
           
 void remove(CachedObject o)
           
 Node removeNodeFromCache(long uniqueID)
           
 Node retriveNodeFromCache(long uniqueID)
          Throws CacheException if node is not in the cache.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

masterList

private CachedObjectMasterList masterList

mhshCache

private java.util.Hashtable mhshCache
Constructor Detail

NodeCache

private NodeCache()

NodeCache

public NodeCache(CachedObjectMasterList master)
Method Detail

addToCache

public void addToCache(Node nd)

retriveNodeFromCache

public Node retriveNodeFromCache(long uniqueID)
                          throws CacheException
Throws CacheException if node is not in the cache.

CacheException

removeNodeFromCache

public Node removeNodeFromCache(long uniqueID)
                         throws CacheException
CacheException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCache

protected java.util.Hashtable getCache()

remove

public void remove(CachedObject o)
Specified by:
remove in interface Cache

main

public static void main(java.lang.String[] args)


Copyright © 2003 Soucejammer project.