org.apache.directory.shared.ldap.codec.extended.operations
Class GracefulShutdownStatesEnum

java.lang.Object
  extended byorg.apache.directory.shared.ldap.codec.extended.operations.GracefulShutdownStatesEnum
All Implemented Interfaces:
org.apache.directory.shared.asn1.ber.grammar.IStates

public class GracefulShutdownStatesEnum
extends java.lang.Object
implements org.apache.directory.shared.asn1.ber.grammar.IStates

This class store the GracefulShutdown's grammar constants. It is also used for debugging purposes.

Author:
Apache Directory Project

Field Summary
static int DELAY_OR_END_TAG
          Delay Tag
static int DELAY_VALUE
          Delay Value
static int GRACEFUL_SHUTDOWN_GRAMMAR
          GracefulShutdown grammar number
static int GRACEFUL_SHUTDOWN_GRAMMAR_SWITCH
          GracefulShutdown grammar
static int GRACEFUL_SHUTDOWN_SEQUENCE_TAG
          Sequence Tag
static int GRACEFUL_SHUTDOWN_SEQUENCE_VALUE
          Sequence Value
static int LAST_GRACEFUL_SHUTDOWN_STATE
          terminal state
static int NB_GRAMMARS
          The total number of grammars used
static int TIME_OFFLINE_OR_DELAY_OR_END_TAG
          Time offline Tag
static int TIME_OFFLINE_VALUE
          Time offline Value
 
Fields inherited from interface org.apache.directory.shared.asn1.ber.grammar.IStates
END_STATE, GRAMMAR_END, GRAMMAR_SWITCH_MASK, INIT_GRAMMAR_STATE, STATES_SWITCH_MASK
 
Method Summary
 java.lang.String getGrammarName(org.apache.directory.shared.asn1.ber.grammar.IGrammar grammar)
          Get the grammar name
 java.lang.String getGrammarName(int grammar)
          Get the grammar name
static org.apache.directory.shared.asn1.ber.grammar.IStates getInstance()
          Get an instance of this class
 java.lang.String getState(int grammar, int state)
          Get the string representing the state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GRACEFUL_SHUTDOWN_SEQUENCE_TAG

public static int GRACEFUL_SHUTDOWN_SEQUENCE_TAG
Sequence Tag


GRACEFUL_SHUTDOWN_SEQUENCE_VALUE

public static int GRACEFUL_SHUTDOWN_SEQUENCE_VALUE
Sequence Value


TIME_OFFLINE_OR_DELAY_OR_END_TAG

public static int TIME_OFFLINE_OR_DELAY_OR_END_TAG
Time offline Tag


TIME_OFFLINE_VALUE

public static int TIME_OFFLINE_VALUE
Time offline Value


DELAY_OR_END_TAG

public static int DELAY_OR_END_TAG
Delay Tag


DELAY_VALUE

public static int DELAY_VALUE
Delay Value


LAST_GRACEFUL_SHUTDOWN_STATE

public static int LAST_GRACEFUL_SHUTDOWN_STATE
terminal state


GRACEFUL_SHUTDOWN_GRAMMAR_SWITCH

public static final int GRACEFUL_SHUTDOWN_GRAMMAR_SWITCH
GracefulShutdown grammar

See Also:
Constant Field Values

GRACEFUL_SHUTDOWN_GRAMMAR

public static final int GRACEFUL_SHUTDOWN_GRAMMAR
GracefulShutdown grammar number

See Also:
Constant Field Values

NB_GRAMMARS

public static final int NB_GRAMMARS
The total number of grammars used

See Also:
Constant Field Values
Method Detail

getInstance

public static org.apache.directory.shared.asn1.ber.grammar.IStates getInstance()
Get an instance of this class

Returns:
An instance on this class

getGrammarName

public java.lang.String getGrammarName(int grammar)
Get the grammar name

Specified by:
getGrammarName in interface org.apache.directory.shared.asn1.ber.grammar.IStates
Parameters:
grammar - The grammar code
Returns:
The grammar name

getGrammarName

public java.lang.String getGrammarName(org.apache.directory.shared.asn1.ber.grammar.IGrammar grammar)
Get the grammar name

Specified by:
getGrammarName in interface org.apache.directory.shared.asn1.ber.grammar.IStates
Parameters:
grammar - The grammar class
Returns:
The grammar name

getState

public java.lang.String getState(int grammar,
                                 int state)
Get the string representing the state

Specified by:
getState in interface org.apache.directory.shared.asn1.ber.grammar.IStates
Parameters:
grammar - The current grammar being used
state - The state number
Returns:
The String representing the state


Copyright © 2003-2006 . All Rights Reserved.