viceroy.net
Class NewPredecessorMessage

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

public final class NewPredecessorMessage
extends NewFieldMessage

represents a message which holds an update for the predecessor of the receiving peer

Author:
Anat Talmy
, Oren Dobzinski

Field Summary
 
Fields inherited from class viceroy.net.NewFieldMessage
 
Constructor Summary
NewPredecessorMessage(ViceroyPeer pred)
          generates a new Message
 
Method Summary
 MessageType getType()
          gets the type of the message
 
Methods inherited from class viceroy.net.NewFieldMessage
getField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewPredecessorMessage

public NewPredecessorMessage(ViceroyPeer pred)
generates a new Message

Parameters:
pred - the new predecessor that will reside in this message
Method Detail

getType

public MessageType getType()
gets the type of the message

Returns:
the type of the message
See Also:
MessageType