|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.network.NetworkMessage | +--dd.host.impl.HostHbStage.HostDbReq
HostDbReq
/HostHbStage.HostDbResp
are used to tranfer the contents
of the HostDb
from an older leaf
set member to a new node. The older leafset members
HostDb
is entirely a
hint
and is used to initialize a
new nodes HostDb
as a way to
bootstrap the new node into the network. The hint
is useful
by giving the new node a notion of the state of the network.
Field Summary | |
---|---|
static byte |
CONT
Continue transfering host entries. |
SecureHash |
dest
identifier of the src and dest. |
short |
maxReturn
Max num of host entries to return in resp |
short |
seq
A sequence number to keep track of position of transfer. |
SecureHash |
src
identifier of the src and dest. |
static byte |
START
Start transfering host entries. |
byte |
state
state indicating whether to
START ,
CONT , or
STOP . |
static byte |
STOP
Stop transfering host entries. |
Fields inherited from class ostore.network.NetworkMessage |
---|
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms |
Constructor Summary | |
---|---|
HostHbStage.HostDbReq(InputBuffer buffer)
Constructs a HostDbReq from its
serialized form. |
|
HostHbStage.HostDbReq(NodeId peer,
SecureHash src,
SecureHash dest,
short seq,
short maxReturn,
byte state)
Construct according to the given fields. |
Method Summary | |
---|---|
void |
serialize(OutputBuffer buffer)
Specified by ostore.util.QuickSerializable |
String |
toString()
Specified by java.lang.Object |
Methods inherited from class ostore.network.NetworkMessage |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte START
host
entries.
public static final byte CONT
host
entries.
public static final byte STOP
host
entries.
public SecureHash src
identifier
of the src and dest.
public SecureHash dest
identifier
of the src and dest.
public short maxReturn
host
entries to return in resp
public byte state
state
indicating whether to
START
,
CONT
, or
STOP
.
public short seq
sequence
number to keep track of position of transfer.
Constructor Detail |
public HostHbStage.HostDbReq(NodeId peer, SecureHash src, SecureHash dest, short seq, short maxReturn, byte state)
public HostHbStage.HostDbReq(InputBuffer buffer) throws QSException
HostDbReq
from its
serialized
form.
buffer
- serialized
form of object.Method Detail |
public void serialize(OutputBuffer buffer)
serialize
in interface QuickSerializable
serialize
in class NetworkMessage
public String toString()
toString
in class NetworkMessage
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |