|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.vat.Runner | +--org.erights.e.elib.vat.DeadRunner
To shutdown a Vat is to merge it into
a
DeadRunner.
Since a DeadRunner is immutable, it needs no synchronization.
Field Summary | |
private Ref |
myBroken
|
private Throwable |
myProblem
Why is this Vat dead? |
Fields inherited from class org.erights.e.elib.vat.Runner |
myOptServingVat, myServingTicket |
Constructor Summary | |
(package private) |
DeadRunner(Throwable problem)
|
Method Summary | |
(package private) void |
addDeadManSwitch(Object deadManSwitchRef)
Remember the deadManSwitch, so that if I'm shut down, I can notify him. |
(package private) void |
disturbEvent(Throwable t)
Does nothing, since we're already doing nothing. |
(package private) Throwable |
enqueue(PendingEvent todo)
Add todo to the queue my thread is servicing |
(package private) String |
getRunnerKind()
What kind of Runner is this? |
(package private) boolean |
isCurrent()
Is the current thread this Runner's thread (the thread servicing this Vat)? |
(package private) void |
setPriority(int newPriority)
Does nothing, since a DeadRunner has thread or priority. |
String |
toString()
Suppressed: Returns a string representation of the object. |
Methods inherited from class org.erights.e.elib.vat.Runner |
getCurrentRunner, getOptCurrentRunner, getOptEStack, getOptServingVat, obtainRunner, obtainRunner, popEStackItem, pushEStackItem, requireCurrent, servingTicket, shorten |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private final Throwable myProblem
private final Ref myBroken
Constructor Detail |
DeadRunner(Throwable problem)
problem
- Why is this Vat dead?Method Detail |
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class Object
void setPriority(int newPriority)
setPriority
in class Runner
String getRunnerKind()
Runner
A kind of Runner determines which kind of "devices" (eg, AWT or SWT widgets) may be synchronously accessed from within this Runner
getRunnerKind
in class Runner
boolean isCurrent()
Runner
If it is, we say we are executing inside this Runner.
r.isCurrent() implies
Runner.getCurrentRunner()
== r.
isCurrent
in class Runner
void disturbEvent(Throwable t)
disturbEvent
in class Runner
Throwable enqueue(PendingEvent todo)
Runner
enqueue
in class Runner
void addDeadManSwitch(Object deadManSwitchRef)
Runner
The deadManSwitch is only notified if it's be a boot-ref (a Ref handled
by a BootRefHandler
whose target's vat is a vat handled by a
different Runner. Otherwise, the notification would need to occur in
this Runner, which is presumably already shut down.
addDeadManSwitch
in class Runner
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |