planet.chord.message
Class BroadcastMessage
java.lang.Object
planet.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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()