public class TimeProtocolHandler
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeProtocolHandler.SkewData |
| Constructor and Description |
|---|
TimeProtocolHandler(java.lang.String serverHost,
int serverPort,
int socketTimeout,
boolean useNanoTime) |
| Modifier and Type | Method and Description |
|---|---|
TimeProtocolHandler.SkewData |
checkSkew()
Query the time server for the current skew.
|
void |
close()
Close the listening socket
|
public TimeProtocolHandler(java.lang.String serverHost,
int serverPort,
int socketTimeout,
boolean useNanoTime)
throws java.net.SocketException,
java.net.UnknownHostException
java.net.SocketExceptionjava.net.UnknownHostExceptionpublic TimeProtocolHandler.SkewData checkSkew() throws java.net.SocketTimeoutException, java.io.IOException
java.net.SocketTimeoutException - if there was a timeout waiting for a response from the serverjava.io.IOException - if there was an IO error writing or reading from the socket.public void close()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.