Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
long |
networkLatencySum |
long |
packetCount |
BigInteger |
skewSum
big integer is required because the sum can be greater than Long.MAX_VALUE
and we need full precision
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
TimeClient(String host,
int port,
int frequencyMs,
int latencyThresholdMs,
int samplesToAverage) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeStatistics() |
long |
getClockSkew() |
int |
getFrequencyMs() |
long |
getNetworkLatency() |
void |
openStatistics() |
void |
run() |
String |
toString() |
void |
waitForInitialization()
Wait until the clock skew is set to a real value.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldpublic BigInteger skewSum
public long networkLatencySum
public long packetCount
public TimeClient(String host, int port, int frequencyMs, int latencyThresholdMs, int samplesToAverage) throws IOException
IOExceptionpublic int getFrequencyMs()
public long getClockSkew()
public long getNetworkLatency()
public void openStatistics()
public void closeStatistics()
public void waitForInitialization()
throws InterruptedException
InterruptedException - if interrupted while waitingCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.