edu.utah.janosvm.kit.comm.commspace
Class CommHashtable
java.lang.Object
|
+--edu.utah.janosvm.sys.Exportable
|
+--edu.utah.janosvm.kit.comm.commspace.CommHashtable
- All Implemented Interfaces:
- TemporaryExport
- class CommHashtable
- extends Exportable
- implements TemporaryExport
The CommHashtable wraps a regular Hashtable and makes it available for
export to other classes.
Field Summary |
private java.util.Hashtable |
table
Hashtable to store pairs of CommSpaceElements. |
Constructor Summary |
(package private) |
CommHashtable()
Construct an empty CommHashtable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
table
private final java.util.Hashtable table
- Hashtable to store pairs of CommSpaceElements.
CommHashtable
CommHashtable()
- Construct an empty CommHashtable.
getName
public java.lang.Object getName()
- Description copied from interface:
TemporaryExport
- Used to determine the name of this TemporaryObject object
during revocation. Should return
null
for an
anonymous export.
- Specified by:
getName
in interface TemporaryExport
put
CommSpaceElement put(CommSpaceElement id,
CommSpaceElement value)
- Parameters:
id
- The identifier to be copied and stored in the hash table.value
- The value to be copied and stored in the hash table.- Returns:
- Null or the previous value paired with the given identifier.
lookup
CommSpaceElement lookup(CommSpaceElement id)
- Parameters:
id
- The identifier to lookup in the table.- Returns:
- Null or the value paired with the given identifier.
remove
void remove(CommSpaceElement id)
- Parameters:
id
- The identifier to remove from the hash table.
containsKey
boolean containsKey(CommSpaceElement id)
- Parameters:
id
- The identifier to check for in the table.- Returns:
- True if the identifier was found in the table, false
otherwise.
expired
public boolean expired()
- Description copied from interface:
TemporaryExport
- This method is called when there are no more imports for the export.
If it returns true than the export is revoked otherwise it will
continue to be available for importing.
- Specified by:
expired
in interface TemporaryExport
- Following copied from interface:
edu.utah.janosvm.sys.TemporaryExport
- Returns:
- True if the export has expired and should be revoked.
toString
public java.lang.String toString()
- Overrides:
toString
in class Exportable
This documentation is Copyright (C) 2000-2003 The University of Utah. All Rights Reserved. See the documentation license for distribution terms and restrictions.
Documentation, software, and mailing lists for the JanosVM can be found at the Janos Project web page: http://www.cs.utah.edu/flux/janos/
Generated on Feb 13, 2003