viceroy.net
Class DiscoverMessage

java.lang.Object
  |
  +--viceroy.net.DiscoverMessage
All Implemented Interfaces:
Message

public class DiscoverMessage
extends java.lang.Object
implements Message

A 'discover' message. represents a message that contains all the data that is relevant for a message that finds a successor for a certain peer

Author:
Anat Talmy
, Oren Dobzinski

Field Summary
private  ViceroyPeer sender
          The sender of the message
 
Constructor Summary
DiscoverMessage(ViceroyPeer _sender)
           
 
Method Summary
 ViceroyPeer getSender()
          Gets the sender of this message
 MessageType getType()
          Gets the type of the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sender

private ViceroyPeer sender
The sender of the message

Constructor Detail

DiscoverMessage

public DiscoverMessage(ViceroyPeer _sender)
Method Detail

getSender

public ViceroyPeer getSender()
Gets the sender of this message

Returns:
the sender of this message

getType

public MessageType getType()
Gets the type of the message

Specified by:
getType in interface Message
Returns:
the type of the message
See Also:
MessageType