org.openflow.gui.net
Interface MessageProcessor<MSG_TYPE extends Message>

All Known Implementing Classes:
ConnectionHandler

public interface MessageProcessor<MSG_TYPE extends Message>

Interface for a class which can process protocol messages.

Author:
David Underhill

Method Summary
 void connectionStateChange()
          Process a change in the connection status
 MSG_TYPE decode(int len, java.io.DataInput in)
          Constructs the object representing the received message.
 void process(MSG_TYPE msg)
          Process a protocol message
 

Method Detail

connectionStateChange

void connectionStateChange()
Process a change in the connection status


decode

MSG_TYPE decode(int len,
                java.io.DataInput in)
                                throws java.io.IOException
Constructs the object representing the received message. The message is known to be of length len and len - 4 bytes representing the rest of the message should be extracted from buf.

Throws:
java.io.IOException

process

void process(MSG_TYPE msg)
Process a protocol message