viceroy.net
Class LeaveDataMessage

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

public final class LeaveDataMessage
extends JoinLeaveDataMessage

A 'Leave data' message. represents a message that contains all the data that is relevant for a peer that is predecessor is leaving, in order to take over its responsibilities

Author:
Anat Talmy
, Oren Dobzinski

Field Summary
 
Fields inherited from class viceroy.net.JoinLeaveDataMessage
 
Constructor Summary
LeaveDataMessage(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

LeaveDataMessage

public LeaveDataMessage(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