railo.runtime.net.ntp
Class NtpClient

java.lang.Object
  extended by railo.runtime.net.ntp.NtpClient

public final class NtpClient
extends Object

NtpClient - an NTP client for Java. This program connects to an NTP server


Constructor Summary
NtpClient(String serverName)
          default constructor of the class
 
Method Summary
 long currentTimeMillis()
          returns the current time from ntp server in ms from 1970
 long getOffset()
          returns the offest from the ntp server to local system
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NtpClient

public NtpClient(String serverName)
default constructor of the class

Parameters:
serverName -
Method Detail

getOffset

public long getOffset()
               throws IOException
returns the offest from the ntp server to local system

Returns:
Throws:
IOException

currentTimeMillis

public long currentTimeMillis()
                       throws IOException
returns the current time from ntp server in ms from 1970

Returns:
Throws:
IOException


Copyright © 2012 Railo