public class GracefulDisconnectStatesEnum extends Object implements IStates
Modifier and Type | Field and Description |
---|---|
static int |
DELAY_STATE
Delay
|
static int |
GRACEFUL_DISCONNECT_SEQUENCE_STATE
Sequence
|
static int |
LAST_GRACEFUL_DISCONNECT_STATE
terminal state
|
static int |
REFERRAL_STATE
Referral
|
static int |
REPLICATED_CONTEXTS_STATE
Replicated contexts
|
static int |
START_STATE
Initial state
|
static int |
TIME_OFFLINE_STATE
Time offline
|
END_STATE, GRAMMAR_END, INIT_GRAMMAR_STATE
Modifier and Type | Method and Description |
---|---|
String |
getGrammarName(IGrammar grammar)
Get the grammar name
|
String |
getGrammarName(int grammar)
Get the grammar name
|
static IStates |
getInstance()
Get an instance of this class
|
String |
getState(int state)
Get the string representing the state
|
public static final int START_STATE
public static final int GRACEFUL_DISCONNECT_SEQUENCE_STATE
public static final int TIME_OFFLINE_STATE
public static final int DELAY_STATE
public static final int REPLICATED_CONTEXTS_STATE
public static final int REFERRAL_STATE
public static final int LAST_GRACEFUL_DISCONNECT_STATE
public static IStates getInstance()
public String getGrammarName(int grammar)
getGrammarName
in interface IStates
grammar
- The grammar codepublic String getGrammarName(IGrammar grammar)
getGrammarName
in interface IStates
grammar
- The grammar classCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.