Module org.elasticsearch.server
Package org.elasticsearch.cluster
Enum Class SnapshotsInProgress.ShardState
java.lang.Object
java.lang.Enum<SnapshotsInProgress.ShardState>
org.elasticsearch.cluster.SnapshotsInProgress.ShardState
- All Implemented Interfaces:
Serializable
,Comparable<SnapshotsInProgress.ShardState>
,Constable
- Enclosing class:
SnapshotsInProgress
The current stage/phase of the shard snapshot, and whether it has completed or failed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShard primary is unassigned and shard cannot be snapshotted.Primary shard is assigned to a node which is marked for removal from the cluster (or which was previously marked for removal and we're still waiting for its other shards to pause).Shard snapshot is waiting for another shard snapshot for the same shard and to the same repository to finish.Shard snapshot is waiting for the primary to snapshot to become available. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
failed()
fromValue
(byte value) Returns the enum constant of this class with the specified name.static SnapshotsInProgress.ShardState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INIT
-
SUCCESS
-
FAILED
-
ABORTED
-
MISSING
Shard primary is unassigned and shard cannot be snapshotted. -
WAITING
Shard snapshot is waiting for the primary to snapshot to become available. -
QUEUED
Shard snapshot is waiting for another shard snapshot for the same shard and to the same repository to finish. -
PAUSED_FOR_NODE_REMOVAL
Primary shard is assigned to a node which is marked for removal from the cluster (or which was previously marked for removal and we're still waiting for its other shards to pause).
-
-
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
-
completed
public boolean completed() -
failed
public boolean failed() -
fromValue
-