org.apache.directory.server.ntp.messages
Class StratumType
java.lang.Object
org.apache.directory.server.ntp.messages.StratumType
- All Implemented Interfaces:
- java.lang.Comparable
public final class StratumType
- extends java.lang.Object
- implements java.lang.Comparable
Stratum: This is a eight-bit unsigned integer indicating the stratum
level of the local clock, with values defined as follows:
Stratum Meaning
----------------------------------------------
0 unspecified or unavailable
1 primary reference (e.g., radio clock)
2-15 secondary reference (via NTP or SNTP)
16-255 reserved
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNSPECIFIED
public static final StratumType UNSPECIFIED
- Enumeration elements are constructed once upon class loading.
Order of appearance here determines the order of compareTo.
PRIMARY_REFERENCE
public static final StratumType PRIMARY_REFERENCE
SECONDARY_REFERENCE
public static final StratumType SECONDARY_REFERENCE
VALUES
public static final java.util.List VALUES
getTypeByOrdinal
public static StratumType getTypeByOrdinal(int type)
getOrdinal
public int getOrdinal()
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