planet.chord.message
Class BroadcastMessage

java.lang.Object
  extended byplanet.chord.message.BroadcastMessage
All Implemented Interfaces:
Message, java.io.Serializable

public class BroadcastMessage
extends java.lang.Object
implements Message

Chord uses this message to send a special message to broadcasting.

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

Constructor Summary
BroadcastMessage(Message info, NodeHandle limit)
          Shows the info to be send on the broadcast, and the limit up to permits to resend this message.
 
Method Summary
 Message getInfo()
           
 NodeHandle getLimit()
           
 void setInfo(Message info)
           
 void setLimit(NodeHandle limit)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BroadcastMessage

public BroadcastMessage(Message info,
                        NodeHandle limit)
Shows the info to be send on the broadcast, and the limit up to permits to resend this message.

Parameters:
info - Message to be send on the broadcast.
limit - Maximum clockwise NodeHandle that permits to resend this message.
Method Detail

getInfo

public Message getInfo()
Returns:
Returns the info.

setInfo

public void setInfo(Message info)
Parameters:
info - The info to set.

getLimit

public NodeHandle getLimit()
Returns:
Returns the limit.

setLimit

public void setLimit(NodeHandle limit)
Parameters:
limit - The limit to set.

toString

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


>METHOD