|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.ntp.messages.ReferenceIdentifier
public class ReferenceIdentifier
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.
Field Summary | |
---|---|
static ReferenceIdentifier |
ACTS
Constant for the "ACTS" reference identifier type. |
static ReferenceIdentifier |
CDMA
Constant for the "CDMA" reference identifier type. |
static ReferenceIdentifier |
CHU
Constant for the "CHU" reference identifier type. |
static ReferenceIdentifier |
DCF
Constant for the "DCF" reference identifier type. |
static ReferenceIdentifier |
GOES
Constant for the "GOES" reference identifier type. |
static ReferenceIdentifier |
GPS
Constant for the "GPS" reference identifier type. |
static ReferenceIdentifier |
INIT
Constant for the "INIT" reference identifier type. |
static ReferenceIdentifier |
LOCL
Constant for the "LOCL" reference identifier type. |
static ReferenceIdentifier |
LORC
Constant for the "LORC" reference identifier type. |
static ReferenceIdentifier |
MSF
Constant for the "MSF" reference identifier type. |
static ReferenceIdentifier |
OMEG
Constant for the "OMEG" reference identifier type. |
static ReferenceIdentifier |
PPS
Constant for the "PPL" reference identifier type. |
static ReferenceIdentifier |
PTB
Constant for the "PTB" reference identifier type. |
static ReferenceIdentifier |
TDF
Constant for the "TDF" reference identifier type. |
static ReferenceIdentifier |
USNO
Constant for the "USNO" reference identifier type. |
static java.util.List<ReferenceIdentifier> |
VALUES
A list of all the reference identifier type constants. |
static ReferenceIdentifier |
WWV
Constant for the "WWV" reference identifier type. |
static ReferenceIdentifier |
WWVB
Constant for the "WWVB" reference identifier type. |
static ReferenceIdentifier |
WWVH
Constant for the "WWVH" reference identifier type. |
Method Summary | |
---|---|
int |
compareTo(ReferenceIdentifier that)
|
java.lang.String |
getCode()
Returns the code associated with this reference identifier type. |
int |
getOrdinal()
Returns the number associated with this reference identifier type. |
static ReferenceIdentifier |
getTypeByName(java.lang.String type)
Returns the reference identifier type when specified by its name. |
static ReferenceIdentifier |
getTypeByOrdinal(int type)
Returns the reference identifier type when specified by its ordinal. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ReferenceIdentifier INIT
public static final ReferenceIdentifier LOCL
public static final ReferenceIdentifier PPS
public static final ReferenceIdentifier ACTS
public static final ReferenceIdentifier USNO
public static final ReferenceIdentifier PTB
public static final ReferenceIdentifier TDF
public static final ReferenceIdentifier DCF
public static final ReferenceIdentifier MSF
public static final ReferenceIdentifier WWV
public static final ReferenceIdentifier WWVB
public static final ReferenceIdentifier WWVH
public static final ReferenceIdentifier CHU
public static final ReferenceIdentifier LORC
public static final ReferenceIdentifier OMEG
public static final ReferenceIdentifier GPS
public static final ReferenceIdentifier GOES
public static final ReferenceIdentifier CDMA
public static final java.util.List<ReferenceIdentifier> VALUES
Method Detail |
---|
public static ReferenceIdentifier getTypeByOrdinal(int type)
type
-
public static ReferenceIdentifier getTypeByName(java.lang.String type)
type
-
public java.lang.String getCode()
public int getOrdinal()
public int compareTo(ReferenceIdentifier that)
compareTo
in interface java.lang.Comparable<ReferenceIdentifier>
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |