com.devexperts.qd.tools
Class TimeSyncTracker
java.lang.Object
com.devexperts.qd.tools.TimeSyncTracker
- All Implemented Interfaces:
- TimeSyncTrackerMBean, com.devexperts.services.StartupService
public class TimeSyncTracker
- extends java.lang.Object
- implements TimeSyncTrackerMBean, com.devexperts.services.StartupService
Tracks that time is synchonized across local network by sending mulitcast messages.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static TimeSyncTracker getInstance()
- Deprecated. Don't use this method directy. TimeSyncTracker will get started in
every JVM that uses
QDMonitoring
automatically.
start
public void start()
- Specified by:
start
in interface TimeSyncTrackerMBean
- Specified by:
start
in interface com.devexperts.services.StartupService
stop
public void stop()
- Specified by:
stop
in interface TimeSyncTrackerMBean
isActive
public boolean isActive()
- Specified by:
isActive
in interface TimeSyncTrackerMBean
getPeerCount
public int getPeerCount()
- Specified by:
getPeerCount
in interface TimeSyncTrackerMBean
getPeerIds
public java.lang.String[] getPeerIds()
- Specified by:
getPeerIds
in interface TimeSyncTrackerMBean
getPeerDeltas
public long[] getPeerDeltas()
- Specified by:
getPeerDeltas
in interface TimeSyncTrackerMBean
getPeerDeviations
public long[] getPeerDeviations()
- Specified by:
getPeerDeviations
in interface TimeSyncTrackerMBean
getMedianDelta
public long getMedianDelta()
- Specified by:
getMedianDelta
in interface TimeSyncTrackerMBean
sendRequest
public void sendRequest(boolean verbose)
- Specified by:
sendRequest
in interface TimeSyncTrackerMBean
analyze
public void analyze(boolean force_log)
dumpPeers
public void dumpPeers(boolean verbose)
- Specified by:
dumpPeers
in interface TimeSyncTrackerMBean