Package org.gridgain.internal.upgrade
Enum Class GridGainFeature
- All Implemented Interfaces:
Serializable,Comparable<GridGainFeature>,Constable
Enumerates cluster-wide features whose availability is determined by the
presence of the feature on every node in the logical topology.
Each node advertises all features it knows about via a BitSet
stored in the system attribute "gridgain.features". A feature is
considered supported cluster-wide when all nodes in the logical
topology have the corresponding bit set.
During a rolling upgrade, new features will become available only after every old node has been replaced by a node whose code includes the feature.
Note: when adding a new feature, assign a unique featureId that
has never been used before (including by removed features). Please keep the
features list up to date.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLocal snapshot scanning.Partition stop-write logic (NodeStorageStateMessage / NodeStorageStateRequestMessage).SQL shared state V2 protocol for query batching.SQL statistics gathering V2. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSystem attribute key under which the node's supported-features BitSet is stored. -
Method Summary
Modifier and TypeMethodDescriptionstatic BitSetReturns aBitSetwith bits set for every feature known to this build.static StringEncodes aBitSetinto a Base64 string suitable for node attributes.intReturns the unique bit position for this feature.static booleansupports(@Nullable String encoded, GridGainFeature feature) Checks whether the given feature is present in a Base64-encoded feature set.static GridGainFeatureReturns the enum constant of this class with the specified name.static GridGainFeature[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SQL_STAT_GATHERING_V2
SQL statistics gathering V2. -
SQL_SHARED_STATE_V2
SQL shared state V2 protocol for query batching. -
LOCAL_SNAPSHOT_SCANNING
Local snapshot scanning. When `snapshot list` command is executed, it will also consider/return snapshots from local URIs. -
PARTITION_STORAGE_ADMISSION
Partition stop-write logic (NodeStorageStateMessage / NodeStorageStateRequestMessage).
-
-
Field Details
-
NODE_ATTRIBUTES_KEY
System attribute key under which the node's supported-features BitSet is stored.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
featureId
public int featureId()Returns the unique bit position for this feature. -
allFeatures
Returns aBitSetwith bits set for every feature known to this build. -
supports
Checks whether the given feature is present in a Base64-encoded feature set.- Parameters:
encoded- Base64-encoded feature set previously produced byencode(java.util.BitSet), ornull.feature- Feature to check.- Returns:
trueif the feature bit is set.
-
encode
Encodes aBitSetinto a Base64 string suitable for node attributes.
-