Bind this Importable to the given Exportable. The most common
implementation of this method would be to cast the Exportable to the
type that the Importable subclass handles and store it in the object as
well as any other handy pointers/values.
Unbind this Importable from any objects its referencing. The most
common implementation of this method would be null out any object
references in this object.
Get the name of the TeamBackEnd associated with this
TeamHandle handle.
Returns:
A copy of the TeamHandle's name.
getDescription
public java.lang.String getDescription()
Get the Team's description string.
Returns:
A copy of the Team's description.
getID
public int getID()
Returns:
The unique integer identifier for this TeamHandle.
owns
public boolean owns(java.lang.Object obj)
Test if the given object is owned by this TeamHandle.
Parameters:
obj - The object to test for ownership.
Returns:
True if this TeamHandle owns the object.
terminate
public void terminate()
Terminate the team referenced by this handle.
This will clean up all
the importables and exportables owned by the
team and schedule all of its threads for
destruction.
If the calling thread is owned by the team being
terminated, this function will not return.
Active visits to the team being terminated will
delay termination until all the visits have been completed.
Create a new reservation that reserves the TeamHandle this object
points to. The reservation remains "active" until
popReservation() is invoked by the current thread.
Unlike a switchTo(), this call does not implicitly switch context
to the other TeamHandle. That is done by invoking use on the
TeamReservation instance returned by this call.
Returns:
A TeamReservation object that reserves this TeamHandle.
Start a visit to the TeamHandle this object points to. While the
visit is active, neither TeamHandle can be terminated, so object
references in either TeamHandle can be manipulated. Write-barriers
are also disabled during this sequence. The visit ends
when returnFromTeam() is invoked.
This documentation is Copyright (C) 2000-2002 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 Mar 17, 2002