ostore.network.patchwork
Class LatencyPatch

java.lang.Object
  |
  +--ostore.network.patchwork.Patch
        |
        +--ostore.network.patchwork.LatencyPatch

public class LatencyPatch
extends Patch

A Patch that measures round-trip latency (in microseconds).

Version:
$Id: LatencyPatch.java,v 1.8 2003/04/29 21:10:16 strib Exp $
Author:
Jeremy Stribling

Inner classes inherited from class ostore.network.patchwork.Patch
Patch.SeqNo
 
Fields inherited from class ostore.network.patchwork.Patch
_classifier, _fault_admin, _period, _probe_times, _queue, _quick_stats, _self_node_id, _seq_nos, _table, _type, _udp_lock, _udp_socket, _userdata_sinks, _write_selitem, _write_selset, class_tag, DEBUG, NUM_TYPES, sim_running, TYPE_BANDWIDTH, TYPE_LATENCY, TYPE_LOSS, TYPE_RECALC, use_tcp
 
Constructor Summary
LatencyPatch(NodeId self_node_id, Classifier classifier, PatchworkTable table, FaultAdmin fault_admin, Period period)
           
 
Method Summary
protected  void handleAlarm(AlarmMsg alarm)
           
protected  void handleProbeResponse(ProbeMsg response, long timeRecvd)
          Handle the response to a probe.
protected  void handleTimeout(ProbeTimeout timeout)
           
 
Methods inherited from class ostore.network.patchwork.Patch
addMonitorAll, addNode, addToQueue, dispatch, dispatch, enqueue, getAndUpdateSeqNo, handleEvent, handleProbe, handleQuickStatProbeResp, handleQuickStatReq, handleQuickStatTimeout, handleUnknown, makeObservation, makeObservation, registerResponse, registerTimeout, removeNode, sendProbe, sendQuickStatProbe, setNextAlarm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatencyPatch

public LatencyPatch(NodeId self_node_id,
                    Classifier classifier,
                    PatchworkTable table,
                    FaultAdmin fault_admin,
                    Period period)
Method Detail

handleProbeResponse

protected void handleProbeResponse(ProbeMsg response,
                                   long timeRecvd)
Description copied from class: Patch
Handle the response to a probe.
Overrides:
handleProbeResponse in class Patch
Following copied from class: ostore.network.patchwork.Patch
Parameters:
response - the response
timeRecvd - the absolute time the repsonse was received (in microseconds)

handleAlarm

protected void handleAlarm(AlarmMsg alarm)
Overrides:
handleAlarm in class Patch

handleTimeout

protected void handleTimeout(ProbeTimeout timeout)
Overrides:
handleTimeout in class Patch