|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StratumType>
org.apache.directory.server.ntp.messages.StratumType
public enum 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
| Enum Constant Summary | |
|---|---|
PRIMARY_REFERENCE
Constant for the "Primary reference" stratum type. |
|
SECONDARY_REFERENCE
Constant for the "Secondary reference" stratum type. |
|
UNSPECIFIED
Constant for the "Unspecified or unavailable" stratum type. |
|
| Method Summary | |
|---|---|
int |
getOrdinal()
Returns the number associated with this stratum type. |
static StratumType |
getTypeByOrdinal(int type)
Returns the stratum type when specified by its ordinal. |
String |
toString()
|
static StratumType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StratumType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final StratumType UNSPECIFIED
public static final StratumType PRIMARY_REFERENCE
public static final StratumType SECONDARY_REFERENCE
| Method Detail |
|---|
public static StratumType[] values()
for (StratumType c : StratumType.values()) System.out.println(c);
public static StratumType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static StratumType getTypeByOrdinal(int type)
type -
public int getOrdinal()
public String toString()
toString in class Enum<StratumType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||