|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.erights.e.elib.vat.SendingContext
Untamed: Records the context it was created in, so that it can be included in a later report.
Field Summary | |
private ConstList |
myOptSendingEStack
A list of EStackItem s to be stringified |
private Throwable |
myOptSendingJStack
Optionally capture the stack of the sending event. |
private Vat |
myOptSendingVat
The Vat of the event that asked for this to be queued, or null if the request came from outside any vats. |
private long |
mySendingTicket
The ticket number within myOptSendingVat of the event that asked for this to be queued, or -1 if the request came from outside any vats. |
Constructor Summary | |
SendingContext()
Enabled: Captures the current context as the sending context. |
|
SendingContext(SendingContext other)
Enabled: XXX Kludge: Because SendingContext is used by subclassing rather than composition, we provide this constructor to copy the context part of two such objects. |
Method Summary | |
void |
printContextOn(TextWriter out)
Enabled: |
void |
report(String msg)
Enabled: Trace at warning level the context captured by this object on creation. |
String |
toString()
Suppressed: |
protected void |
trace()
This should always be called once construction is complete. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.erights.e.elib.oldeio.EPrintable |
__printOn |
Field Detail |
private final Vat myOptSendingVat
private final long mySendingTicket
private final Throwable myOptSendingJStack
This is captured if causality is traced at the debug level or higher, and so is not captured by default. If causality is indeed traced at the debug level or higher, then this is captured whether or not the request happens in a vat.
private final ConstList myOptSendingEStack
EStackItem
s to be stringified
Constructor Detail |
public SendingContext(SendingContext other)
public SendingContext()
Method Detail |
protected void trace()
public void report(String msg)
public void printContextOn(TextWriter out) throws IOException
IOException
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |