sg.edu.nus.protocol.body
Class SPLeaveNotifyClientBody

java.lang.Object
  extended by sg.edu.nus.protocol.body.Body
      extended by sg.edu.nus.protocol.body.SPLeaveNotifyClientBody
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SPLeaveNotifyClientBody
extends Body
implements java.io.Serializable

Implement the message body used for notify attached client nodes when a node leaves the network

Version:
1.0 2006-3-3
Author:
Vu Quang Hieu
See Also:
Serialized Form

Constructor Summary
SPLeaveNotifyClientBody(PhysicalInfo physicalSender, PhysicalInfo physicalReplacer)
          Construct the message body with specified parameters.
SPLeaveNotifyClientBody(java.lang.String serializeData)
          Construct the message body with a string value.
 
Method Summary
 PhysicalInfo getPhysicalReplacer()
          Get physical address of the replacer
 PhysicalInfo getPhysicalSender()
          Get physical address of the sender
 java.lang.String getString()
          Return a readable string for testing or writing in the log file
 java.lang.String toString()
           
 
Methods inherited from class sg.edu.nus.protocol.body.Body
clone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SPLeaveNotifyClientBody

public SPLeaveNotifyClientBody(PhysicalInfo physicalSender,
                               PhysicalInfo physicalReplacer)
Construct the message body with specified parameters.

Parameters:
physicalSender - physical address of the sender
physicalReplacer - physical address of the replacer

SPLeaveNotifyClientBody

public SPLeaveNotifyClientBody(java.lang.String serializeData)
Construct the message body with a string value.

Parameters:
serializeData - the string value that contains the serialized message body
Method Detail

getPhysicalSender

public PhysicalInfo getPhysicalSender()
Get physical address of the sender

Returns:
physical address of the sender

getPhysicalReplacer

public PhysicalInfo getPhysicalReplacer()
Get physical address of the replacer

Returns:
tree node

getString

public java.lang.String getString()
Return a readable string for testing or writing in the log file

Returns:
a readable string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object