JanosVM v0.6.0 Java API Documentation: Class Team
|
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 | +--edu.utah.janosvm.sys.Team
Peer object for a TeamBackEnd. An instance of a Team is created inside each team to contain that team's local data. Specifically, this class keeps track of the cross-team references coming from its team. Team objects are never created directly, they are created implicitly as part of 'Team.create()'.
The association with the TeamBackEnd in the kernel team is implicit (through TeamBackEnd.getCurrentTeam()).
Because this class extends TeamHandle, it is importable.
TeamBackEnd
,
TeamHandle
Fields inherited from class edu.utah.janosvm.sys.TeamHandle |
be |
Fields inherited from class edu.utah.janosvm.sys.ListNode |
pred,
succ |
Method Summary | |
boolean |
addDependency(TeamHandle th)
Add a dependency to this team. |
static TeamHandle |
create()
|
static TeamHandle |
create(ResourceSpec[] specs)
|
static TeamHandle |
create(java.lang.String name)
|
static TeamHandle |
create(java.lang.String name,
ResourceSpec[] specs)
|
static Team |
current()
|
ExportManager |
exportAnonymousObject(Exportable ex)
|
ExportManager |
exportObject(java.lang.Object id,
Exportable ex)
|
static TeamHandle |
find(java.lang.String name)
Get a handle on the Team with the given name. |
java.lang.Object |
getClassLocal(java.lang.Class cl)
|
static java.lang.Object |
getCurrentClassLocal(java.lang.Class cl)
|
java.util.Vector |
getData()
|
java.lang.String |
getDescription()
Get the Team's description string. |
TeamHandle |
getKernelTeam()
Get a handle on the kernel team. |
PortAuthority |
getPortAuthority()
Get the ExportTable for the current team. |
void |
notifyOnFinish()
Set the flag on the team object that indicates that the last non-daemon thread in the team should send out a TeamEvent.FINISHED event. |
ExportManager |
reserveExportID(java.lang.Object id)
|
void |
revokeAnonymousObject(Exportable ex)
|
void |
revokeObject(java.lang.Object id)
XXX rename to revokeExport |
void |
setClassLocal(java.lang.Class cl,
java.lang.Object obj)
Store a per-team class local object. |
static void |
setCurrentClassLocal(java.lang.Class cl,
java.lang.Object obj)
|
void |
setDescription(java.lang.String str)
|
java.lang.String |
toString()
|
Methods inherited from class edu.utah.janosvm.sys.TeamHandle |
bindTo,
cancelImport,
clone,
equals,
getID,
getName,
importObject,
isTerminated,
owns,
popReservation,
pushReservation,
returnFrom,
switchTo,
terminate,
unbindFrom |
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 |
Method Detail |
public static TeamHandle create(java.lang.String name, ResourceSpec[] specs) throws DuplicateExportException, ResourceSpecException, DeadTeamException
public static TeamHandle create(java.lang.String name) throws DuplicateExportException, ResourceSpecException, DeadTeamException
public static TeamHandle create(ResourceSpec[] specs) throws ResourceSpecException, DeadTeamException
public static TeamHandle create() throws ResourceSpecException, DeadTeamException
public static Team current()
public static TeamHandle find(java.lang.String name) throws DeadTeamException, TeamEjectionException, NoSuchExportException
name
- The name of the TeamHandle to locate.public void setDescription(java.lang.String str)
str
- A string that describes this team.public java.lang.String getDescription()
public TeamHandle getKernelTeam()
public PortAuthority getPortAuthority()
public ExportManager reserveExportID(java.lang.Object id) throws DuplicateExportException
public ExportManager exportObject(java.lang.Object id, Exportable ex) throws DuplicateExportException
public void revokeObject(java.lang.Object id) throws NoSuchExportException
public ExportManager exportAnonymousObject(Exportable ex)
public void revokeAnonymousObject(Exportable ex) throws NoSuchExportException
public java.util.Vector getData()
public void setClassLocal(java.lang.Class cl, java.lang.Object obj)
cl
- The class the object should be stored with.obj
- The object to store with the class.public static void setCurrentClassLocal(java.lang.Class cl, java.lang.Object obj)
public java.lang.Object getClassLocal(java.lang.Class cl)
cl
- The class to retrieve the local object for.public static java.lang.Object getCurrentClassLocal(java.lang.Class cl)
public boolean addDependency(TeamHandle th)
th
- The team this one should depend on.public void notifyOnFinish()
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 |