sg.edu.nus.peer.request
Interface PnPListener

All Superinterfaces:
java.util.EventListener, UDPListener
All Known Implementing Classes:
BootstrapPnPSender, ServerPnPSender

public interface PnPListener
extends UDPListener

The PnPListener defines a callback interface used for processing the behavior of node failure according to the PONG message.

Version:
1.0 2006-9-26
Author:
Xu Linhao
See Also:
BootstrapPnPServer, ClientPnPServer, ServerPnPServer

Method Summary
 void nodeAlive(PeerInfo info)
          This method will be invoked if a node is still alive.
 void nodeFailure(PeerInfo info)
          This method will be invoked when a node is detected as failure.
 

Method Detail

nodeAlive

void nodeAlive(PeerInfo info)
This method will be invoked if a node is still alive.

Parameters:
info - the PeerInfo instance

nodeFailure

void nodeFailure(PeerInfo info)
This method will be invoked when a node is detected as failure.

Parameters:
info - the PeerInfo instance