bamboo.openhash.multicast
Class StatMessage

java.lang.Object
  extended by ostore.network.NetworkMessage
      extended by bamboo.openhash.multicast.StatMessage
All Implemented Interfaces:
Cloneable, ostore.util.QuickSerializable, QueueElementIF

public class StatMessage
extends ostore.network.NetworkMessage
implements ostore.util.QuickSerializable


Field Summary
 long begin_time
           
 long est_rtt
           
 int hops
           
 String path
           
 long prev_time
           
 String rtt_times
           
 ostore.util.NodeId sender_id
           
 int seq_num
           
 String transit_times
           
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, timeout_sec, user_data, wait_ms
 
Constructor Summary
StatMessage(ostore.util.InputBuffer buffer)
           
StatMessage(ostore.util.NodeId peer, ostore.util.NodeId sender_id, int seq_num, long est_rtt, long begin_time)
           
 
Method Summary
 void add_rtt(long rtt)
           
 void add_transit(long transit)
           
 Object clone()
           
 void serialize(ostore.util.OutputBuffer buffer)
           
 
Methods inherited from class ostore.network.NetworkMessage
toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sender_id

public ostore.util.NodeId sender_id

seq_num

public int seq_num

est_rtt

public long est_rtt

begin_time

public long begin_time

rtt_times

public String rtt_times

transit_times

public String transit_times

prev_time

public long prev_time

hops

public int hops

path

public String path
Constructor Detail

StatMessage

public StatMessage(ostore.util.NodeId peer,
                   ostore.util.NodeId sender_id,
                   int seq_num,
                   long est_rtt,
                   long begin_time)

StatMessage

public StatMessage(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

add_rtt

public void add_rtt(long rtt)

add_transit

public void add_transit(long transit)