|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.ntp.messages.StratumType
public final class StratumType
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
| Field Summary | |
|---|---|
static StratumType |
PRIMARY_REFERENCE
Constant for the "Primary reference" stratum type. |
static StratumType |
SECONDARY_REFERENCE
Constant for the "Secondary reference" stratum type. |
static StratumType |
UNSPECIFIED
Constant for the "Unspecified or unavailable" stratum type. |
static java.util.List<StratumType> |
VALUES
A list of all the stratum type constants. |
| Method Summary | |
|---|---|
int |
compareTo(StratumType that)
|
int |
getOrdinal()
Returns the number associated with this stratum type. |
static StratumType |
getTypeByOrdinal(int type)
Returns the stratum 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 StratumType UNSPECIFIED
public static final StratumType PRIMARY_REFERENCE
public static final StratumType SECONDARY_REFERENCE
public static final java.util.List<StratumType> VALUES
| Method Detail |
|---|
public static StratumType getTypeByOrdinal(int type)
type -
public int getOrdinal()
public int compareTo(StratumType that)
compareTo in interface java.lang.Comparable<StratumType>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 | |||||||||