Rice Pastry API

rice.pastry.leafset
Class BroadcastLeafSet

java.lang.Object
  |
  +--rice.pastry.messaging.Message
        |
        +--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,v 1.8 2003/07/21 19:45:46 druschel Exp $
Author:
Andrew Ladd
See Also:
Serialized Form

Field Summary
static int Correction
           
static int JoinAdvertise
           
static int JoinInitial
           
static int Update
           
 
Constructor Summary
BroadcastLeafSet(rice.pastry.security.Credentials cred, java.util.Date stamp, rice.pastry.NodeHandle from, rice.pastry.leafset.LeafSet leafSet, int type)
          Constructor.
BroadcastLeafSet(rice.pastry.security.Credentials cred, rice.pastry.NodeHandle from, rice.pastry.leafset.LeafSet leafSet, int type)
          Constructor.
BroadcastLeafSet(java.util.Date stamp, rice.pastry.NodeHandle from, rice.pastry.leafset.LeafSet leafSet, int type)
          Constructor.
BroadcastLeafSet(rice.pastry.NodeHandle from, rice.pastry.leafset.LeafSet leafSet, int type)
          Constructor.
 
Method Summary
 rice.pastry.NodeHandle from()
          Returns the node id of the node that broadcast its leaf set.
 rice.pastry.leafset.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, getSenderId, getStream, hasPriority, setPriority, setSenderId, 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(rice.pastry.NodeHandle from,
                        rice.pastry.leafset.LeafSet leafSet,
                        int type)
Constructor.


BroadcastLeafSet

public BroadcastLeafSet(rice.pastry.security.Credentials cred,
                        rice.pastry.NodeHandle from,
                        rice.pastry.leafset.LeafSet leafSet,
                        int type)
Constructor.

Parameters:
cred - the credentials.

BroadcastLeafSet

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

Parameters:
stamp - the timestamp

BroadcastLeafSet

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

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

from

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

Returns:
the node id.

leafSet

public rice.pastry.leafset.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

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection