|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ModeType>
org.apache.directory.server.ntp.messages.ModeType
public enum ModeType
Mode: This is a three-bit integer indicating the mode, with values defined as follows: Mode Meaning ------------------------------------ 0 reserved 1 symmetric active 2 symmetric passive 3 client 4 server 5 broadcast 6 reserved for NTP control message 7 reserved for private use
| Enum Constant Summary | |
|---|---|
BROADCAST
Constant for the "Broadcast mode" mode type. |
|
CLIENT
Constant for the "Client mode" mode type. |
|
RESERVED
Constant for the "Reserved mode" mode type. |
|
RESERVED_FOR_NTP_CONTROL
Constant for the "Reserved for NTP control message" mode type. |
|
RESERVED_FOR_PRIVATE_USE
Constant for the "Reserved for private use" mode type. |
|
RESERVED_PASSIVE
Constant for the "Symmetric passive mode" mode type. |
|
SERVER
Constant for the "Server mode" mode type. |
|
SYMMETRIC_ACTIVE
Constant for the "Symmetric active mode" mode type. |
|
| Method Summary | |
|---|---|
int |
getOrdinal()
Returns the number associated with this mode type. |
static ModeType |
getTypeByOrdinal(int type)
Returns the mode type when specified by its ordinal. |
String |
toString()
|
static ModeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ModeType[] |
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 ModeType RESERVED
public static final ModeType SYMMETRIC_ACTIVE
public static final ModeType RESERVED_PASSIVE
public static final ModeType CLIENT
public static final ModeType SERVER
public static final ModeType BROADCAST
public static final ModeType RESERVED_FOR_NTP_CONTROL
public static final ModeType RESERVED_FOR_PRIVATE_USE
| Method Detail |
|---|
public static ModeType[] values()
for (ModeType c : ModeType.values()) System.out.println(c);
public static ModeType 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 ModeType getTypeByOrdinal(int type)
type -
public int getOrdinal()
public String toString()
toString in class Enum<ModeType>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||