JanosVM v1.0 API

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.
 
Fields inherited from class edu.utah.janosvm.sys.Exportable
anonManager, owner
 
Constructor Summary
(package private) CommHashtable()
          Construct an empty CommHashtable.
 
Method Summary
(package private)  boolean containsKey(CommSpaceElement id)
           
 boolean expired()
          This method is called when there are no more imports for the export.
 java.lang.Object getName()
          Used to determine the name of this TemporaryObject object during revocation.
(package private)  CommSpaceElement lookup(CommSpaceElement id)
           
(package private)  CommSpaceElement put(CommSpaceElement id, CommSpaceElement value)
           
(package private)  void remove(CommSpaceElement id)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.utah.janosvm.sys.Exportable
getAnonymousManager, pushOwnerReservation, returnFromOwner, setAnonymousManager, switchToOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0
 

Field Detail

table

private final java.util.Hashtable table
Hashtable to store pairs of CommSpaceElements.
Constructor Detail

CommHashtable

CommHashtable()
Construct an empty CommHashtable.
Method Detail

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

JanosVM v1.0 API

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