Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.util.ntp
Class NtpClient

java.lang.Object
  extended by 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)
           
 
Method Summary
 NtpResponse getResponse()
           
protected static double now()
          Return the number of seconds since 1900
 void setTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NtpClient

public NtpClient(java.lang.String hostname,
                 int port)

NtpClient

public NtpClient(java.lang.String hostname)
Method Detail

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

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.