JanosVM v0.6.0 Java API Documentation: Class TeamHandle
|
JanosVM v0.6.0 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janosvm.sys.ListNode | +--edu.utah.janosvm.sys.Importable | +--edu.utah.janosvm.sys.TeamHandle
Provides a safe handle to a Team. Technically, this points to the kernel team's TeamBackEnd object that represents the team in question.
TeamBackEnd
,
Team
Field Summary | |
protected edu.utah.janosvm.sys.TeamBackEnd |
be
|
Fields inherited from class edu.utah.janosvm.sys.ListNode |
pred,
succ |
Fields inherited from interface java.lang.Cloneable |
KAFFE_VERSION |
Constructor Summary | |
TeamHandle()
|
Method Summary | |
protected void |
bindTo(Exportable ex)
Bind this Importable to the given Exportable. |
void |
cancelImport(Importable im)
|
java.lang.Object |
clone()
Clone a ListNode. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getDescription()
Get the Team's description string. |
int |
getID()
|
java.lang.String |
getName()
Get the name of the TeamBackEnd associated with this TeamHandle handle. |
void |
importObject(Importable to,
java.lang.Object id)
|
boolean |
isTerminated()
|
boolean |
owns(java.lang.Object obj)
Test if the given object is owned by this TeamHandle. |
static void |
popReservation()
Pop the last TeamReservation off the stack. |
TeamReservation |
pushReservation()
Create a new reservation that reserves the TeamHandle this object points to. |
static void |
returnFrom()
End a visit to this TeamHandle. |
void |
switchTo()
Start a visit to the TeamHandle this object points to. |
void |
terminate()
Terminate the team referenced by this handle. |
java.lang.String |
toString()
|
protected void |
unbindFrom()
Unbind this Importable from any objects its referencing. |
Methods inherited from class edu.utah.janosvm.sys.Importable |
copy,
finalize,
revoke |
Methods inherited from class edu.utah.janosvm.sys.ListNode |
append,
prepend,
remove |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected edu.utah.janosvm.sys.TeamBackEnd be
Constructor Detail |
public TeamHandle()
Method Detail |
protected void bindTo(Exportable ex)
ex
- The Exportable that is being imported.protected void unbindFrom()
public boolean equals(java.lang.Object obj)
public java.lang.String getName()
public java.lang.String getDescription()
public int getID()
public boolean owns(java.lang.Object obj)
obj
- The object to test for ownership.public void terminate()
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.
TeamBackEnd#terminate()
public boolean isTerminated()
public void importObject(Importable to, java.lang.Object id) throws DeadTeamException, TeamEjectionException, NoSuchExportException
public void cancelImport(Importable im)
public TeamReservation pushReservation() throws DeadTeamException
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.switchTo()
,
TeamBackEnd#pushReservation(int)
,
TeamReservation.visit()
,
TeamReservation.leave()
public void switchTo() throws DeadTeamException, TeamEjectionException
returnFromTeam()
is invoked.returnFrom()
,
TeamBackEnd#switchTo(int)
public static void returnFrom()
switchTo()
,
TeamBackEnd#returnFrom()
public static void popReservation()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public java.lang.String toString()
|
JanosVM v0.6.0 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |