bamboo.vivaldi
Class PingNodeMsg
java.lang.Object
ostore.network.NetworkMessage
bamboo.vivaldi.PingNodeMsg
- All Implemented Interfaces:
- Cloneable, ostore.util.QuickSerializable, QueueElementIF
public class PingNodeMsg
- extends ostore.network.NetworkMessage
A message used to ping remote nodes for updating the local virtual
coordinate. The sender node includes its current virtual coordinate
so that the remote node may use it update its own coordinate.
- Version:
- $Id: PingNodeMsg.java,v 1.1 2004/03/04 21:22:20 czerwin Exp $
- Author:
- Steven Czerwinski
| Fields inherited from class ostore.network.NetworkMessage |
comp_q, est_rtt_ms, inbound, peer, sender, timeout_sec, user_data, wait_ms |
PingNodeMsg
public PingNodeMsg(ostore.util.NodeId dest,
VirtualCoordinate coord)
- Constructs a ping message with the sender's virtual coordinate.
- Parameters:
dest - The destination node.coord - The sender's current virtual coordinate.
PingNodeMsg
public PingNodeMsg(ostore.util.InputBuffer buffer)
throws ostore.util.QSException
- Throws:
ostore.util.QSException
serialize
public void serialize(ostore.util.OutputBuffer buffer)
- Specified by:
serialize in interface ostore.util.QuickSerializable- Overrides:
serialize in class ostore.network.NetworkMessage
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone in class ostore.network.NetworkMessage
- Throws:
CloneNotSupportedException
getSenderCoordinate
public VirtualCoordinate getSenderCoordinate()
- Returns the virtual coordinate of the sender node.
toString
public String toString()
- Overrides:
toString in class ostore.network.NetworkMessage