Package org.apache.cassandra.gms
Enum ApplicationState
- java.lang.Object
-
- java.lang.Enum<ApplicationState>
-
- org.apache.cassandra.gms.ApplicationState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ApplicationState>
public enum ApplicationState extends java.lang.Enum<ApplicationState>
The various "states" exchanged through Gossip.Important Note: Gossip uses the ordinal of this enum in the messages it exchanges, so values in that enum should not be re-ordered or removed. The end of this enum should also always include some "padding" so that if newer versions add new states, old nodes that don't know about those new states don't "break" deserializing those states.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DC
DISK_USAGE
HOST_ID
INDEX_STATUS
INTERNAL_ADDRESS_AND_PORT
INTERNAL_IP
Deprecated.See CASSANDRA-7544LOAD
NATIVE_ADDRESS_AND_PORT
NET_VERSION
RACK
RELEASE_VERSION
REMOVAL_COORDINATOR
RPC_ADDRESS
Deprecated.See CASSANDRA-7544RPC_READY
SCHEMA
SEVERITY
SSTABLE_VERSIONS
The set of sstable versions on this node.STATUS
Deprecated.See CASSANDRA-7544STATUS_WITH_PORT
TOKENS
X_11_PADDING
X1
X10
X2
X3
X4
X5
X6
X7
X8
X9
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ApplicationState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ApplicationState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATUS
@Deprecated(since="4.0") public static final ApplicationState STATUS
Deprecated.See CASSANDRA-7544
-
LOAD
public static final ApplicationState LOAD
-
SCHEMA
public static final ApplicationState SCHEMA
-
DC
public static final ApplicationState DC
-
RACK
public static final ApplicationState RACK
-
RELEASE_VERSION
public static final ApplicationState RELEASE_VERSION
-
REMOVAL_COORDINATOR
public static final ApplicationState REMOVAL_COORDINATOR
-
INTERNAL_IP
@Deprecated(since="4.0") public static final ApplicationState INTERNAL_IP
Deprecated.See CASSANDRA-7544
-
RPC_ADDRESS
@Deprecated(since="4.0") public static final ApplicationState RPC_ADDRESS
Deprecated.See CASSANDRA-7544
-
X_11_PADDING
public static final ApplicationState X_11_PADDING
-
SEVERITY
public static final ApplicationState SEVERITY
-
NET_VERSION
public static final ApplicationState NET_VERSION
-
HOST_ID
public static final ApplicationState HOST_ID
-
TOKENS
public static final ApplicationState TOKENS
-
RPC_READY
public static final ApplicationState RPC_READY
-
INTERNAL_ADDRESS_AND_PORT
public static final ApplicationState INTERNAL_ADDRESS_AND_PORT
-
NATIVE_ADDRESS_AND_PORT
public static final ApplicationState NATIVE_ADDRESS_AND_PORT
-
STATUS_WITH_PORT
public static final ApplicationState STATUS_WITH_PORT
-
SSTABLE_VERSIONS
public static final ApplicationState SSTABLE_VERSIONS
The set of sstable versions on this node. This will usually be only the "current" sstable format (the one with which new sstables are written), but may contain more on newly upgraded nodes before `upgradesstable` has been run.The value (a set of sstable
Version
) is serialized as a comma-separated list.
-
DISK_USAGE
public static final ApplicationState DISK_USAGE
-
INDEX_STATUS
public static final ApplicationState INDEX_STATUS
-
X1
public static final ApplicationState X1
-
X2
public static final ApplicationState X2
-
X3
public static final ApplicationState X3
-
X4
public static final ApplicationState X4
-
X5
public static final ApplicationState X5
-
X6
public static final ApplicationState X6
-
X7
public static final ApplicationState X7
-
X8
public static final ApplicationState X8
-
X9
public static final ApplicationState X9
-
X10
public static final ApplicationState X10
-
-
Method Detail
-
values
public static ApplicationState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ApplicationState c : ApplicationState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ApplicationState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-