org.hyperic.util.ntp
Class NtpClient
java.lang.Object
org.hyperic.util.ntp.NtpClient
public class NtpClient
- extends java.lang.Object
Constructor Summary |
NtpClient(java.lang.String hostname)
|
NtpClient(java.lang.String hostname,
int port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NtpClient
public NtpClient(java.lang.String hostname,
int port)
NtpClient
public NtpClient(java.lang.String hostname)
setTimeout
public void setTimeout(int timeout)
now
protected static double now()
- Return the number of seconds since 1900
getResponse
public NtpResponse getResponse()
throws java.net.SocketException,
java.net.UnknownHostException,
java.io.IOException
- Throws:
java.net.SocketException
java.net.UnknownHostException
java.io.IOException
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.