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

java.lang.Object
  extended by org.apache.directory.server.ntp.messages.StratumType
All Implemented Interfaces:
java.lang.Comparable

public final class StratumType
extends java.lang.Object
implements java.lang.Comparable

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


Field Summary
static StratumType PRIMARY_REFERENCE
           
static StratumType SECONDARY_REFERENCE
           
static StratumType UNSPECIFIED
          Enumeration elements are constructed once upon class loading.
static java.util.List VALUES
           
 
Method Summary
 int compareTo(java.lang.Object that)
           
 int getOrdinal()
           
static StratumType 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

UNSPECIFIED

public static final StratumType UNSPECIFIED
Enumeration elements are constructed once upon class loading. Order of appearance here determines the order of compareTo.


PRIMARY_REFERENCE

public static final StratumType PRIMARY_REFERENCE

SECONDARY_REFERENCE

public static final StratumType SECONDARY_REFERENCE

VALUES

public static final java.util.List VALUES
Method Detail

getTypeByOrdinal

public static StratumType 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-2009 Apache Software Foundation. All Rights Reserved.