public class MessageTracer extends java.lang.Object implements PortMonitor
MessageTracer
is a special port monitor that can be attached to
any port and will print all messages that are transferred thru that port. It
is a nice debugging aid...Constructor and Description |
---|
MessageTracer(java.io.PrintStream log) |
MessageTracer(java.io.PrintWriter log) |
MessageTracer(java.lang.String logFile) |
Modifier and Type | Method and Description |
---|---|
void |
logMessage(java.io.PrintWriter _log,
Message msg,
Port port)
Prints the message to the log
|
void |
monitorGetMessage(Message message,
Port port) |
void |
monitorIsMessageAvailable(boolean messageAvailable,
Port port) |
void |
monitorMessageIndication(Message message,
Port port) |
public MessageTracer(java.io.PrintWriter log)
public MessageTracer(java.io.PrintStream log)
public MessageTracer(java.lang.String logFile) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void monitorGetMessage(Message message, Port port)
monitorGetMessage
in interface PortMonitor
public void monitorIsMessageAvailable(boolean messageAvailable, Port port)
monitorIsMessageAvailable
in interface PortMonitor
public void monitorMessageIndication(Message message, Port port)
monitorMessageIndication
in interface PortMonitor