|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.route.DebugEventMonitor
Abstract base class for a host object event monitor. This monitor (the slave) prints out a message when an event node in a target host object (the master) sends or receives an event.
To enable event reporting, include the follwoing VM arguments.
Note that only one debug connection is allowed to a given event node
at a time.
-Ddebug.enabled=true -Ddebug.tags=name
Implementors must include a delegate event node for each one in the
monitored target object, which prints a debug message. For example
private BooleanField.EventIn _overIn = new BooleanField.EventIn() {
protected void process() {
Debug.println(getName(), getName() + ": overIn=" + get());
}
};
Constructor Summary | |
DebugEventMonitor(java.lang.String name)
Creates an instance. |
Method Summary | |
DebugEventMonitor |
connectTarget(java.lang.Object host)
Called by the system and clients to connect this monitor to the target host whether or not monitoring is enabled (connection established unconditionally). |
DebugEventMonitor |
connectTargetMaybe(java.lang.Object host)
Called by the system and clients to connect this monitor to the target host, but only if debug is enabled and this monitor's name tag is set (connection established conditionally). |
java.lang.String |
getName()
Gets the name and debug tag for this monitor. |
protected abstract void |
implConnectTarget(java.lang.Object host)
Called by the system to connect this monitor to the target host. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DebugEventMonitor(java.lang.String name)
name
- Name and debug tag. Never null.Method Detail |
public java.lang.String getName()
public final DebugEventMonitor connectTarget(java.lang.Object host)
host
- Reference to the debug target (master). Never null.
public final DebugEventMonitor connectTargetMaybe(java.lang.Object host)
host
- Reference to the debug target (master). Never null.
protected abstract void implConnectTarget(java.lang.Object host)
host
- Reference to the debug target (master). Never null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |