| java.lang.Object com.sun.midp.util.LiveTracer
LiveTracer | public class LiveTracer (Code) | | A simple tracing mechanism that's useful for i3 tests to get calls when a
particular tracepoint is hit.
|
Method Summary | |
public void | add(String tag, LiveTraceListener l) Registers a listener for tracepoints identified by this tag. | public void | clear() Clears all listeners from the tracer. | public void | remove(String tag) Unregisters the indicated listener from the tracer. | public void | trace(String tag) Indicates a tracepoint identified by this tag. |
add | public void add(String tag, LiveTraceListener l)(Code) | | Registers a listener for tracepoints identified by this tag. When a
tracepoint is hit whose tag matches this one, the listener is called.
Replaces any listener that might already exist for this tag.
|
clear | public void clear()(Code) | | Clears all listeners from the tracer.
|
remove | public void remove(String tag)(Code) | | Unregisters the indicated listener from the tracer.
|
trace | public void trace(String tag)(Code) | | Indicates a tracepoint identified by this tag. If there is a listener
registered for this tag, the listener is called.
|
|
|