viceroy.net
Class JoinDataMessage

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

public final class JoinDataMessage
extends JoinLeaveDataMessage

A 'Join data' message. represents a message that contains all the data that is relevant for a joining or leaving peer

Author:
Anat Talmy
, Oren Dobzinski

Field Summary
 
Fields inherited from class viceroy.net.JoinLeaveDataMessage
 
Constructor Summary
JoinDataMessage(ViceroyPeer predecessor, ViceroyPeer successor, java.util.SortedMap vals)
          creates a new message
 
Method Summary
 MessageType getType()
          gets the type of the message
 
Methods inherited from class viceroy.net.JoinLeaveDataMessage
getPredecessor, getSuccessor, getValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoinDataMessage

public JoinDataMessage(ViceroyPeer predecessor,
                       ViceroyPeer successor,
                       java.util.SortedMap vals)
creates a new message

Parameters:
predecessor - the predecessor of the joining peer
successor - the successor of the joining peer
vals - the new values of the joining peer
Method Detail

getType

public MessageType getType()
gets the type of the message

Returns:
the type of the message
See Also:
MessageType