bamboo.vivaldi
Class PingNodeMsg

java.lang.Object
  extended by ostore.network.NetworkMessage
      extended by 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

Field Summary
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, timeout_sec, user_data, wait_ms
 
Constructor Summary
PingNodeMsg(ostore.util.InputBuffer buffer)
           
PingNodeMsg(ostore.util.NodeId dest, VirtualCoordinate coord)
          Constructs a ping message with the sender's virtual coordinate.
 
Method Summary
 Object clone()
           
 VirtualCoordinate getSenderCoordinate()
          Returns the virtual coordinate of the sender node.
 void serialize(ostore.util.OutputBuffer buffer)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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