java.lang.Object
java.util.Dictionary
java.util.Hashtable
org.mitre.cvw.CVWCache
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class CVWCache
- extends java.util.Hashtable
current client-side object cache implementation, singleton class
- Version:
- 1.0 11/12/96
| Nested classes inherited from class java.util.Hashtable |
|
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Fields inherited from class java.util.Hashtable |
|
|
Constructor Summary |
(package private) |
CVWCache(int size,
float loadFactor)
end class methods/var |
| Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
strValue
java.lang.String strValue
numValue
int numValue
cvwCache
private static CVWCache cvwCache
- class methods/var
CVWCache
CVWCache(int size,
float loadFactor)
- end class methods/var
getInstance
public static CVWCache getInstance()
- Returns the current instance of the CVWCache.
setCVWCache
private static void setCVWCache(CVWCache cache)
- Sets the static variable
cacheObject
public void cacheObject(MCPCommand mcpCmd)
- Creates the appropriate object within the CVWObject hierarchy
given a MCPCommand.
MCP receive cvw-object-info
cacheObject
public void cacheObject(CVWObject cvwObj)
- Puts the object into the cache, either creating an entry or updating an existing
object. If it is an update, notify any observers.
cacheObject
public void cacheObject(CVWDocument cacheRef,
CVWDocument cvwDoc)
- Caches a CVWDocument object
cacheObject
public void cacheObject(CVWWhiteboard cacheRef,
CVWWhiteboard cvwWB)
- Caches a CVWWhiteboard object
get
public CVWObject get(java.lang.String str)
- Returns the cached object given an object number string
get
public CVWObject get(int val)
- Returns the cached object given an object number integer
get
public CVWObject get(CVWObjNum cvwObjNum)
- Returns the cached object given an object number