|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbamboo.vivaldi.LocateNodeMsg
public class LocateNodeMsg
A message used to pick a random node in the bamboo overlay for updating the sender's virtual coordinate. Upon receipt, a node will respond with a LocateNodeResp to tell the sender it's node id and current virtual coordinate.
The sending node also includes its current virtual coordinate, in case the remote node wishes to use the response message to update its own virtual coordinate.
| Constructor Summary | |
|---|---|
LocateNodeMsg(ostore.util.InputBuffer buffer)
Deserializes an existing request from the input buffer (network). |
|
LocateNodeMsg(ostore.util.NodeId requestor,
VirtualCoordinate coord,
int version)
Creates a new request, ready to be sent out to the network. |
|
| Method Summary | |
|---|---|
ostore.util.NodeId |
getRequestor()
Returns the id of the node who orginally made this request. |
VirtualCoordinate |
getRequestorCoord()
Returns the virtual coordinate of the requestor. |
int |
getVersion()
Returns the virtual coordinate version number of the requestor. |
void |
serialize(ostore.util.OutputBuffer buffer)
Serializes this object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocateNodeMsg(ostore.util.NodeId requestor,
VirtualCoordinate coord,
int version)
requestor - The node orginiating this request.coord - The requestor's current virtual coordinate.
public LocateNodeMsg(ostore.util.InputBuffer buffer)
throws ostore.util.QSException
buffer - The buffer from which to retreive the object.
ostore.util.QSException| Method Detail |
|---|
public ostore.util.NodeId getRequestor()
public VirtualCoordinate getRequestorCoord()
public int getVersion()
public void serialize(ostore.util.OutputBuffer buffer)
serialize in interface ostore.util.QuickSerializablepublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||