public class TimeProtocolHandler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimeProtocolHandler.SkewData |
| Constructor and Description |
|---|
TimeProtocolHandler(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(String serverHost, int serverPort, int socketTimeout, boolean useNanoTime) throws SocketException, UnknownHostException
SocketExceptionUnknownHostExceptionpublic TimeProtocolHandler.SkewData checkSkew() throws SocketTimeoutException, IOException
SocketTimeoutException - if there was a timeout waiting for a response from the serverIOException - if there was an IO error writing or reading from the socket.public void close()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.