sg.edu.nus.peer.event
Class SPLIAdjacentRootReplyListener

java.lang.Object
  extended by sg.edu.nus.peer.event.ActionAdapter
      extended by sg.edu.nus.peer.event.SPLIAdjacentRootReplyListener
All Implemented Interfaces:
java.util.EventListener, ActionListener

public class SPLIAdjacentRootReplyListener
extends ActionAdapter

Implement a listener for processing SP_LI_ADJACENT_ROOT_REPLY message.

Version:
1.0 2006-12-14
Author:
Vu Quang Hieu

Constructor Summary
SPLIAdjacentRootReplyListener(AbstractMainFrame gui)
           
 
Method Summary
 void actionPerformed(java.io.ObjectOutputStream oos, Message msg)
          Invoked when a networking event occurs.
 boolean isConsumed(Message msg)
          Determine if the listener can consume the network event.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPLIAdjacentRootReplyListener

public SPLIAdjacentRootReplyListener(AbstractMainFrame gui)
Method Detail

actionPerformed

public void actionPerformed(java.io.ObjectOutputStream oos,
                            Message msg)
                     throws EventHandleException
Description copied from interface: ActionListener
Invoked when a networking event occurs.

Note: the consumed state should be reset before return a response message.

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class ActionAdapter
Parameters:
oos - the output stream used for replying a message to the request peer.
msg - the message to be processed
Throws:
EventHandleException

isConsumed

public boolean isConsumed(Message msg)
                   throws EventHandleException
Description copied from interface: ActionListener
Determine if the listener can consume the network event.

Specified by:
isConsumed in interface ActionListener
Overrides:
isConsumed in class ActionAdapter
Parameters:
msg - the network event
Returns:
if the listener can consume the event, return true; otherwise, return false
Throws:
EventHandleException