gumbo.net
Class NetWindow.PingStatus

java.lang.Object
  |
  +--gumbo.net.NetWindow.PingStatus
All Implemented Interfaces:
MessageListener
Enclosing class:
NetWindow

public class NetWindow.PingStatus
extends java.lang.Object
implements MessageListener

A message listener that acknowledges receipt of a ping command message, and reports the status of a ping status message to the window's status bar.


Constructor Summary
NetWindow.PingStatus(java.lang.String remoteName)
           
 
Method Summary
 void processMessage(Message message, MessageWriter writer)
          Called when the listener needs to process a new message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetWindow.PingStatus

public NetWindow.PingStatus(java.lang.String remoteName)
Parameters:
remoteName - Name of the remote node (e.g. "Client", "Server") being pinged. If null a default is used.
Method Detail

processMessage

public void processMessage(Message message,
                           MessageWriter writer)
Description copied from interface: MessageListener
Called when the listener needs to process a new message. Presumably the message type (subclass) is one that the listener is interested in (see MessageRouter).

Specified by:
processMessage in interface MessageListener
Parameters:
message - The message to be handled. Never null.
writer - Message writer to be used for sending a reply message (on the router thread). Null if none.