JanosVM v1.0 API

edu.utah.janosvm.kit.isolate
Class IsolateManager

java.lang.Object
  |
  +--edu.utah.janosvm.kit.isolate.IsolateManager

class IsolateManager
extends java.lang.Object

The IsolateManager class manages the global table for mapping the Isolate's unique identifier to their TeamHandle.


Field Summary
private  TeamHandle managerTeam
          Pointer to the team that actually holds the mapping data.
private static java.lang.Class thisClass
          Reference to the java Class object to be used with Team.setClassLocal/getClassLocal.
private static java.util.Hashtable uniqueIDtoTeam
          Mapping from the Isolate's unique Identifier to the TeamHandle object.
 
Constructor Summary
IsolateManager(TeamHandle managerTeam)
           
 
Method Summary
 void addMapping(java.lang.String uniqueID, EventTeamHandle th)
          Add a mapping to the table.
static IsolateManager getCurrentIsolateManager()
           
 java.util.Hashtable getMappings()
           
 TeamHandle getTeamHandle()
           
static IsolateManager initIsolateManager(TeamHandle manager)
          Initialize and install an IsolateManager in the current team.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait, wait0
 

Field Detail

thisClass

private static java.lang.Class thisClass
Reference to the java Class object to be used with Team.setClassLocal/getClassLocal.

uniqueIDtoTeam

private static java.util.Hashtable uniqueIDtoTeam
Mapping from the Isolate's unique Identifier to the TeamHandle object.

managerTeam

private TeamHandle managerTeam
Pointer to the team that actually holds the mapping data.
Constructor Detail

IsolateManager

public IsolateManager(TeamHandle managerTeam)
Parameters:
managerTeam - Reference to the manager team.
Method Detail

getCurrentIsolateManager

public static IsolateManager getCurrentIsolateManager()
Returns:
The IsolateManager object for the current team.

initIsolateManager

public static IsolateManager initIsolateManager(TeamHandle manager)
Initialize and install an IsolateManager in the current team.
Parameters:
manager - The manager TeamHandle.
Returns:
The IsolateManager associated with the current team.

getTeamHandle

public TeamHandle getTeamHandle()
Returns:
The reference to the manager team.

addMapping

public void addMapping(java.lang.String uniqueID,
                       EventTeamHandle th)
Add a mapping to the table.
Parameters:
uniqueID - The unique identifier associated with the Isolate.
th - The reference to the team associated with the Isolate.

getMappings

public java.util.Hashtable getMappings()
Returns:
The Hashtable containing the mappings.

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