cgl.narada.service.time.ntptime
Class NtpInfo

java.lang.Object
  extended by cgl.narada.service.time.ntptime.NtpInfo

public class NtpInfo
extends Object

This class represents a data structure describing the useful information that can be extracted from a NtpDatagramPacket. Please see rfc2030 for more details.


Field Summary
 int leapYearIndicator
          Leap year indicator.
 int mode
          Mode of the communication with the server.
 long offset
          Offset of the local clock versus the server clock.
 long originate
          Originate time in milliseconds
 int pollInterval
          Poll Interval in seconds.
 double precision
          Precision of the server clock (in milliseconds).
 long receive
          Receive time in milliseconds
 long reception
          Reception time in milliseconds
 String referenceIdentifier
          Reference identifier.
 NtpTimestamp referenceTimeStamp
          Reference timestamp.
 double rootDelay
          Total roundtrip delay from the server to the primary server (in milliseconds).
 double rootDispersion
          Nominal error relative to the primary reference source
 long roundTripDelay
          Roundtrip delay (in milliseconds).
 InetAddress serverAddress
          InetAddress of the server.
 int stratum
          The stratum.
 long transmit
          Transmit time in milliseconds
 int versionNumber
          Version number of the packet.
 
Constructor Summary
NtpInfo()
           
 
Method Summary
 String toString()
          Converts this object into a String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serverAddress

public InetAddress serverAddress
InetAddress of the server.


referenceTimeStamp

public NtpTimestamp referenceTimeStamp
Reference timestamp.


referenceIdentifier

public String referenceIdentifier
Reference identifier.


precision

public double precision
Precision of the server clock (in milliseconds).


rootDelay

public double rootDelay
Total roundtrip delay from the server to the primary server (in milliseconds).


rootDispersion

public double rootDispersion
Nominal error relative to the primary reference source


leapYearIndicator

public int leapYearIndicator
Leap year indicator.


mode

public int mode
Mode of the communication with the server.


pollInterval

public int pollInterval
Poll Interval in seconds.


stratum

public int stratum
The stratum. Distance (in hops) from the server to the primary server.


versionNumber

public int versionNumber
Version number of the packet.


offset

public long offset
Offset of the local clock versus the server clock. It is calculated according to NTP protocol version 3.


originate

public long originate
Originate time in milliseconds


receive

public long receive
Receive time in milliseconds


reception

public long reception
Reception time in milliseconds


roundTripDelay

public long roundTripDelay
Roundtrip delay (in milliseconds). Calculated according to NTP protocol version 3.


transmit

public long transmit
Transmit time in milliseconds

Constructor Detail

NtpInfo

public NtpInfo()
Method Detail

toString

public String toString()
Converts this object into a String representation.

Overrides:
toString in class Object
Returns:
String - String representation of this object


For comments and suggestions please send e-mail to The NaradaBrokering Project