org.apache.directory.server.ntp.messages
Class ModeType

java.lang.Object
  extended by 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


Field Summary
static ModeType BROADCAST
           
static ModeType CLIENT
           
static ModeType RESERVED
          Enumeration elements are constructed once upon class loading.
static ModeType RESERVED_FOR_NTP_CONTROL
           
static ModeType RESERVED_FOR_PRIVATE_USE
           
static ModeType RESERVED_PASSIVE
           
static ModeType SERVER
           
static ModeType SYMMETRIC_ACTIVE
           
static java.util.List VALUES
           
 
Method Summary
 int compareTo(java.lang.Object that)
           
 int getOrdinal()
           
static ModeType getTypeByOrdinal(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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


Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.