ePOST API

rice.pastry.leafset
Class BroadcastLeafSet

java.lang.Object
  extended by rice.pastry.messaging.Message
      extended by rice.pastry.leafset.BroadcastLeafSet
All Implemented Interfaces:
java.io.Serializable

public class BroadcastLeafSet
extends Message
implements java.io.Serializable

Broadcast a leaf set to another node.

Version:
$Id: BroadcastLeafSet.java 2556 2005-06-07 22:02:14Z jeffh $
Author:
Andrew Ladd
See Also:
Serialized Form

Field Summary
static int Correction
           
static int JoinAdvertise
           
static int JoinInitial
           
static int Update
           
 
Fields inherited from class rice.pastry.messaging.Message
DEFAULT_PRIORITY_LEVEL
 
Constructor Summary
BroadcastLeafSet(Credentials cred, java.util.Date stamp, NodeHandle from, LeafSet leafSet, int type)
          Constructor.
BroadcastLeafSet(Credentials cred, NodeHandle from, LeafSet leafSet, int type)
          Constructor.
BroadcastLeafSet(java.util.Date stamp, NodeHandle from, LeafSet leafSet, int type)
          Constructor.
BroadcastLeafSet(NodeHandle from, LeafSet leafSet, int type)
          Constructor.
 
Method Summary
 NodeHandle from()
          Returns the node id of the node that broadcast its leaf set.
 LeafSet leafSet()
          Returns the leaf set that was broadcast.
 java.lang.String toString()
           
 int type()
          Returns the type of leaf set.
 
Methods inherited from class rice.pastry.messaging.Message
getCredentials, getDate, getDestination, getPriority, getSender, getSenderId, setPriority, setSender, stamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Update

public static final int Update
See Also:
Constant Field Values

JoinInitial

public static final int JoinInitial
See Also:
Constant Field Values

JoinAdvertise

public static final int JoinAdvertise
See Also:
Constant Field Values

Correction

public static final int Correction
See Also:
Constant Field Values
Constructor Detail

BroadcastLeafSet

public BroadcastLeafSet(NodeHandle from,
                        LeafSet leafSet,
                        int type)
Constructor.


BroadcastLeafSet

public BroadcastLeafSet(Credentials cred,
                        NodeHandle from,
                        LeafSet leafSet,
                        int type)
Constructor.

Parameters:
cred - the credentials.

BroadcastLeafSet

public BroadcastLeafSet(java.util.Date stamp,
                        NodeHandle from,
                        LeafSet leafSet,
                        int type)
Constructor.

Parameters:
stamp - the timestamp

BroadcastLeafSet

public BroadcastLeafSet(Credentials cred,
                        java.util.Date stamp,
                        NodeHandle from,
                        LeafSet leafSet,
                        int type)
Constructor.

Parameters:
cred - the credentials.
stamp - the timestamp
Method Detail

from

public NodeHandle from()
Returns the node id of the node that broadcast its leaf set.

Returns:
the node id.

leafSet

public LeafSet leafSet()
Returns the leaf set that was broadcast.

Returns:
the leaf set.

type

public int type()
Returns the type of leaf set.

Returns:
the type.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ePOST API

Copyright © 2001-2005 - Rice Pastry.