Package sg.edu.nus.peer.request

Interface Summary
PnPListener The PnPListener defines a callback interface used for processing the behavior of node failure according to the PONG message.
UDPListener All listeners used for processing UDP packets must extend this interface.
 

Class Summary
BootstrapPnPHandler A particular UDPHandler is responsible for processing MsgType.PING, MsgType.PONG, and MsgType.TROUBLESHOOT messages from server peers.
BootstrapPnPReceiver The BootstrapPnPReceiver is responsible for listening any incoming UDP packets from remote peers.
BootstrapPnPSender The BootstrapPnPSender is responsible for sending UDP packets with the type of MsgType.PING out to remote nodes.
BootstrapPnPServer The BootstrapPnPServer is used for sending and receiving UDP messages between peers, which is composed of a BootstrapPnPSender and a BootstrapPnPReceiver.
BootstrapRequestManager Implements all request operations of bootstrap server.
CheckImbalance Used for checking the status of the workload at peers.
ClientPnPHandler A particular UDPHandler is responsible for processing MsgType.PING, MsgType.PONG, and MsgType.TROUBLESHOOT messages from bootstrapper and server peers.
ClientPnPReceiver The ClientPnPReceiver is responsible for listening any incoming UDP packets from remote peers.
ServerPnPHandler A particular UDPHandler is responsible for processing MsgType.PING, MsgType.PONG, and MsgType.TROUBLESHOOT messages from bootstrapper, server peers and client peers.
ServerPnPReceiver The ServerPnPReceiver is responsible for listening any incoming UDP packets from remote peers.
ServerPnPSender The ServerPnPSender is responsible for sending UDP packets with the type of MsgType.PING out to bootstrapper, server peers in its routing table and all its client peers.
ServerPnPServer The ServerPnPServer is used for sending and receiving UDP messages between peers, which is composed of a ServerPnPSender and a ServerPnPReceiver.
ServerRequestManager Implement all request operation of the super peer.
UDPHandler The UDPHandler is responsible for processing UDP packets.
UDPPacket This class is used to generate various UDP packets used by UDPSender and UDPReceiver.
UDPReceiver The UDPReceiver is responsible for listening and receiving UDP packets from remote sites by wrapping DatagramSocket.
UDPSender The UDPSender is responsible for send UDP packets to remote users.
UDPServer The UDPServer is composed of a UDPSender and a UDPReceiver, where the sender is responsible for sending UDP packets to remote peers and the receiver for receiving UDP packets from remote peers.
 

Exception Summary
UDPParseException Exception thrown when parse datagram packet eorror.