org.apache.directory.server.ntp.messages
Class ReferenceIdentifier
java.lang.Object
org.apache.directory.server.ntp.messages.ReferenceIdentifier
- All Implemented Interfaces:
- java.lang.Comparable
- public class ReferenceIdentifier
- extends java.lang.Object
- implements java.lang.Comparable
Reference Identifier: This is a 32-bit bitstring identifying the
particular reference source. In the case of NTP Version 3 or Version
4 stratum-0 (unspecified) or stratum-1 (primary) servers, this is a
four-character ASCII string, left justified and zero padded to 32
bits. In NTP Version 3 secondary servers, this is the 32-bit IPv4
address of the reference source. In NTP Version 4 secondary servers,
this is the low order 32 bits of the latest transmit timestamp of the
reference source. NTP primary (stratum 1) servers should set this
field to a code identifying the external reference source according
to the following list. If the external reference is one of those
listed, the associated code should be used. Codes for sources not
listed can be contrived as appropriate.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INIT
public static final ReferenceIdentifier INIT
- Enumeration elements are constructed once upon class loading.
Order of appearance here determines the order of compareTo.
LOCL
public static final ReferenceIdentifier LOCL
PPS
public static final ReferenceIdentifier PPS
ACTS
public static final ReferenceIdentifier ACTS
USNO
public static final ReferenceIdentifier USNO
PTB
public static final ReferenceIdentifier PTB
TDF
public static final ReferenceIdentifier TDF
DCF
public static final ReferenceIdentifier DCF
MSF
public static final ReferenceIdentifier MSF
WWV
public static final ReferenceIdentifier WWV
WWVB
public static final ReferenceIdentifier WWVB
WWVH
public static final ReferenceIdentifier WWVH
CHU
public static final ReferenceIdentifier CHU
LORC
public static final ReferenceIdentifier LORC
OMEG
public static final ReferenceIdentifier OMEG
GPS
public static final ReferenceIdentifier GPS
GOES
public static final ReferenceIdentifier GOES
CDMA
public static final ReferenceIdentifier CDMA
VALUES
public static final java.util.List VALUES
getTypeByOrdinal
public static ReferenceIdentifier getTypeByOrdinal(int type)
getTypeByName
public static ReferenceIdentifier getTypeByName(java.lang.String type)
getOrdinal
public int getOrdinal()
getCode
public java.lang.String getCode()
compareTo
public int compareTo(java.lang.Object that)
- Specified by:
compareTo
in interface java.lang.Comparable
toString
public java.lang.String toString()