planet.test.broadcast
Class DHTPeerTestMessage

java.lang.Object
  extended byplanet.test.broadcast.DHTPeerTestMessage
All Implemented Interfaces:
Message, java.io.Serializable

public class DHTPeerTestMessage
extends java.lang.Object
implements Message

Version:
1.0 Message to be send in the Broadcast Test.
Author:
Carles Pairot
See Also:
Serialized Form

Constructor Summary
DHTPeerTestMessage(Id sourceNodeId, java.lang.String data)
          Constructor for this Message.
 
Method Summary
 java.lang.String getData()
          Gets the data.
 Id getSourceNodeId()
          Gets Id of source Node, who sends this message.
 void setData(java.lang.String data)
          Sets new data.
 void setSourceNodeId(Id id)
          Sets a new Id of source Node, who sends (re-send) this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTPeerTestMessage

public DHTPeerTestMessage(Id sourceNodeId,
                          java.lang.String data)
Constructor for this Message.

Parameters:
sourceNodeId - Id of the source Node.
data - String with all data to be send.
Method Detail

getData

public java.lang.String getData()
Gets the data.

Returns:
String with all data of this message.

setData

public void setData(java.lang.String data)
Sets new data.

Parameters:
data - New data to be set.

getSourceNodeId

public Id getSourceNodeId()
Gets Id of source Node, who sends this message.

Returns:
Id of source Node.

setSourceNodeId

public void setSourceNodeId(Id id)
Sets a new Id of source Node, who sends (re-send) this message.

Parameters:
id - Id of the new source Node.


======= END OF BOTTOM NAVBAR ======= -->