org.apache.directory.server.ntp.messages
Class ModeType
java.lang.Object
org.apache.directory.server.ntp.messages.ModeType
- All Implemented Interfaces:
- java.lang.Comparable
public final class ModeType
- extends java.lang.Object
- implements java.lang.Comparable
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RESERVED
public static final ModeType RESERVED
- Enumeration elements are constructed once upon class loading.
Order of appearance here determines the order of compareTo.
SYMMETRIC_ACTIVE
public static final ModeType SYMMETRIC_ACTIVE
RESERVED_PASSIVE
public static final ModeType RESERVED_PASSIVE
CLIENT
public static final ModeType CLIENT
SERVER
public static final ModeType SERVER
BROADCAST
public static final ModeType BROADCAST
RESERVED_FOR_NTP_CONTROL
public static final ModeType RESERVED_FOR_NTP_CONTROL
RESERVED_FOR_PRIVATE_USE
public static final ModeType RESERVED_FOR_PRIVATE_USE
VALUES
public static final java.util.List VALUES
getTypeByOrdinal
public static ModeType 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