|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.ntp.messages.ModeType
public final class 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
| Field Summary | |
|---|---|
static ModeType |
BROADCAST
Constant for the "Broadcast mode" mode type. |
static ModeType |
CLIENT
Constant for the "Client mode" mode type. |
static ModeType |
RESERVED
Constant for the "Reserved mode" mode type. |
static ModeType |
RESERVED_FOR_NTP_CONTROL
Constant for the "Reserved for NTP control message" mode type. |
static ModeType |
RESERVED_FOR_PRIVATE_USE
Constant for the "Reserved for private use" mode type. |
static ModeType |
RESERVED_PASSIVE
Constant for the "Symmetric passive mode" mode type. |
static ModeType |
SERVER
Constant for the "Server mode" mode type. |
static ModeType |
SYMMETRIC_ACTIVE
Constant for the "Symmetric active mode" mode type. |
static java.util.List<ModeType> |
VALUES
A list of all the mode type constants. |
| Method Summary | |
|---|---|
int |
compareTo(ModeType that)
|
int |
getOrdinal()
Returns the number associated with this mode type. |
static ModeType |
getTypeByOrdinal(int type)
Returns the mode 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 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
public static final java.util.List<ModeType> VALUES
| Method Detail |
|---|
public static ModeType getTypeByOrdinal(int type)
type -
public int getOrdinal()
public int compareTo(ModeType that)
compareTo in interface java.lang.Comparable<ModeType>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 | |||||||||