|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.messaging.Message rice.pastry.messaging.PRawMessage rice.pastry.leafset.BroadcastLeafSet
public class BroadcastLeafSet
Broadcast a leaf set to another node.
Field Summary | |
---|---|
static int |
Correction
|
static int |
JoinAdvertise
|
static int |
JoinInitial
|
static short |
TYPE
|
static int |
Update
|
Fields inherited from class rice.pastry.messaging.Message |
---|
DEFAULT_PRIORITY_LEVEL |
Fields inherited from interface rice.p2p.commonapi.Message |
---|
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary | |
---|---|
BroadcastLeafSet(java.util.Date stamp,
NodeHandle from,
LeafSet leafSet,
int type,
long requestTimeStamp)
Constructor. |
|
BroadcastLeafSet(InputBuffer buf,
NodeHandleFactory nhf)
|
|
BroadcastLeafSet(NodeHandle from,
LeafSet leafSet,
int type,
long requestTimeStamp)
Constructor. |
Method Summary | |
---|---|
NodeHandle |
from()
Returns the node id of the node that broadcast its leaf set. |
long |
getTimeStamp()
|
short |
getType()
Raw Serialization |
LeafSet |
leafSet()
Returns the leaf set that was broadcast. |
void |
serialize(OutputBuffer buf)
|
java.lang.String |
toString()
|
int |
type()
Returns the type of leaf set. |
Methods inherited from class rice.pastry.messaging.Message |
---|
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 |
Methods inherited from interface rice.p2p.commonapi.Message |
---|
getPriority |
Field Detail |
---|
public static final short TYPE
public static final int Update
public static final int JoinInitial
public static final int JoinAdvertise
public static final int Correction
Constructor Detail |
---|
public BroadcastLeafSet(NodeHandle from, LeafSet leafSet, int type, long requestTimeStamp)
public BroadcastLeafSet(java.util.Date stamp, NodeHandle from, LeafSet leafSet, int type, long requestTimeStamp)
stamp
- the timestamppublic BroadcastLeafSet(InputBuffer buf, NodeHandleFactory nhf) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public NodeHandle from()
public LeafSet leafSet()
public int type()
public java.lang.String toString()
toString
in class java.lang.Object
public short getType()
public void serialize(OutputBuffer buf) throws java.io.IOException
java.io.IOException
public long getTimeStamp()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |