planet.chord.message
Class NodeMessage

java.lang.Object
  extended by planet.chord.message.NodeMessage
All Implemented Interfaces:
java.io.Serializable, Message

public class NodeMessage
extends java.lang.Object
implements Message

Chord uses this message to inform to another one any NodeHandle that it is required.

Author:
Jordi Pujol Date: 01/07/2004
See Also:
Serialized Form

Constructor Summary
NodeMessage(NodeHandle handle)
          Shows the NodeHandle to send with this message.
 
Method Summary
 NodeHandle getNode()
           
 void setNode(NodeHandle handle)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeMessage

public NodeMessage(NodeHandle handle)
Shows the NodeHandle to send with this message.

Parameters:
handle - NodeHandle to send.
Method Detail

getNode

public NodeHandle getNode()
Returns:
Returns the NodeHandle.

setNode

public void setNode(NodeHandle handle)
Parameters:
handle - The NodeHandle to set.

toString

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