edu.utah.janosvm.kit.management.team
Class TeamEventMessenger
java.lang.Object
|
+--edu.utah.janosvm.kit.management.team.TeamEventMessenger
- All Implemented Interfaces:
- TeamEventHandler
- public class TeamEventMessenger
- extends java.lang.Object
- implements TeamEventHandler
A TeamEventHandler implementation that sends TeamEventMessages to a MsgPort.
Since the `event' call back happens on kernel time we don't want to waste
time so we just visit the other team, construct a message and send it off
to someone who can handle it better.
Field Summary |
private MsgPort |
mp
The port we should send TeamEventMessage's too. |
Constructor Summary |
TeamEventMessenger(MsgPort mp)
Construct a messenger that will send TeamEventMessage's to the given
MsgPort. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait, wait0 |
mp
private MsgPort mp
- The port we should send TeamEventMessage's too.
TeamEventMessenger
public TeamEventMessenger(MsgPort mp)
- Construct a messenger that will send TeamEventMessage's to the given
MsgPort.
- Parameters:
mp
- A MsgPort that is willing to receive and process
TeamEventMessage's
event
public void event(EventTeamHandle eth,
TeamReservation tr,
TeamEvent ev)
- Description copied from interface:
TeamEventHandler
- Callback for handling events related to teams.
NOTE: This is called in the context of the kernel so
you must use the provided TeamReservation if you want to do
anything in the team that caused the Event. The TeamEvent
object is allocated in the kernel Team context.
NOTE: Do not modify the TeamEvent that is passed. You will
confuse later receivers of the (same) event object. Do not
store the TeamEvent object, as it will be modified for
subsequent events.
- Specified by:
event
in interface TeamEventHandler
- Following copied from interface:
edu.utah.janosvm.sys.TeamEventHandler
- Parameters:
eth
- The handle that refers to the team that triggered the event.tr
- A TeamReservation thats reserved the team that `this' is in.ev
- The TeamEvent object that describes the event that occurred.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
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