|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.test.framework.clocksynch.LocalClockSynchronizer
public class LocalClockSynchronizer
LocalClockSynchronizer is a fake ClockSynchronizer
that simply calls System.nanoTime(). It exists so that
the same tests can be run distributed or locally, taking timings against the ClockSynchronizer interface without
being aware of how they are being run.
Responsibilities | Collaborations |
---|---|
Supply the local clock with no delta. |
Constructor Summary | |
---|---|
LocalClockSynchronizer()
|
Method Summary | |
---|---|
long |
getDelta()
Gets the clock delta in nano seconds. |
long |
getEpsilon()
Gets an estimate of the clock error in nan seconds. |
long |
nanoTime()
Gets the local clock time with any computed delta added in. |
void |
synch()
The slave side should call this to copute a clock delta with the reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalClockSynchronizer()
Method Detail |
---|
public void synch() throws ClockSynchFailureException
synch
in interface ClockSynchronizer
ClockSynchFailureException
- If synchronization cannot be achieved.public long getDelta()
getDelta
in interface ClockSynchronizer
public long getEpsilon()
getEpsilon
in interface ClockSynchronizer
public long nanoTime()
nanoTime
in interface ClockSynchronizer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |