Package org.apache.qpid.test.framework.clocksynch

Interface Summary
ClockSynchronizer ClockSynchronizer provides an interface through which two nodes may synchronize their clocks.
 

Class Summary
ClockSynchThread ClockSynchThread is a convenient utility for running a thread that periodically synchronizes the clock against a reference.
LocalClockSynchronizer LocalClockSynchronizer is a fake ClockSynchronizer that simply calls System.nanoTime().
UDPClockReference UDPClockReference supplies a refernce clock signal (generated from System.nanoTime()).
UDPClockSynchronizer UDPClockSynchronizer is a ClockSynchronizer that sends pings as UDP datagrams, and uses the following simple algorithm to perform clock synchronization: Slave initiates synchronization with a Reference clock. Slave stamps current local time on a "time request" message and sends to the Reference. Upon receipt by Reference, Reference stamps Reference-time and returns. Upon receipt by Slave, Slave subtracts current time from sent time and divides by two to compute latency.
 

Exception Summary
ClockSynchFailureException ClockSynchFailureException represents failure of a ClockSynchronizer to achieve synchronization.
 



Licensed to the Apache Software Foundation