org.apache.directory.server.ntp.messages
Class ReferenceIdentifier

java.lang.Object
  extended by 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.


Field Summary
static ReferenceIdentifier ACTS
           
static ReferenceIdentifier CDMA
           
static ReferenceIdentifier CHU
           
static ReferenceIdentifier DCF
           
static ReferenceIdentifier GOES
           
static ReferenceIdentifier GPS
           
static ReferenceIdentifier INIT
          Enumeration elements are constructed once upon class loading.
static ReferenceIdentifier LOCL
           
static ReferenceIdentifier LORC
           
static ReferenceIdentifier MSF
           
static ReferenceIdentifier OMEG
           
static ReferenceIdentifier PPS
           
static ReferenceIdentifier PTB
           
static ReferenceIdentifier TDF
           
static ReferenceIdentifier USNO
           
static java.util.List VALUES
           
static ReferenceIdentifier WWV
           
static ReferenceIdentifier WWVB
           
static ReferenceIdentifier WWVH
           
 
Method Summary
 int compareTo(java.lang.Object that)
           
 java.lang.String getCode()
           
 int getOrdinal()
           
static ReferenceIdentifier getTypeByName(java.lang.String type)
           
static ReferenceIdentifier getTypeByOrdinal(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.