Package org.elasticsearch.cluster
Class SnapshotsInProgress.ShardSnapshotStatus
java.lang.Object
org.elasticsearch.cluster.SnapshotsInProgress.ShardSnapshotStatus
- Enclosing class:
- SnapshotsInProgress
public static class SnapshotsInProgress.ShardSnapshotStatus
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static SnapshotsInProgress.ShardSnapshotStatusMISSINGShard snapshot status for shards that could not be snapshotted because their index was deleted from before the shard snapshot started.static SnapshotsInProgress.ShardSnapshotStatusUNASSIGNED_QUEUEDShard snapshot status for shards that are waiting for another operation to finish before they can be assigned to a node. -
Constructor Summary
Constructors Constructor Description ShardSnapshotStatus(java.lang.String nodeId, java.lang.String generation)ShardSnapshotStatus(java.lang.String nodeId, SnapshotsInProgress.ShardState state, java.lang.String generation)ShardSnapshotStatus(java.lang.String nodeId, SnapshotsInProgress.ShardState state, java.lang.String reason, java.lang.String generation)ShardSnapshotStatus(StreamInput in) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.Stringgeneration()inthashCode()booleanisActive()Checks if this shard snapshot is actively executing.java.lang.StringnodeId()java.lang.Stringreason()SnapshotsInProgress.ShardStatestate()java.lang.StringtoString()voidwriteTo(StreamOutput out)
-
Field Details
-
UNASSIGNED_QUEUED
Shard snapshot status for shards that are waiting for another operation to finish before they can be assigned to a node. -
MISSING
Shard snapshot status for shards that could not be snapshotted because their index was deleted from before the shard snapshot started.
-
-
Constructor Details
-
ShardSnapshotStatus
public ShardSnapshotStatus(java.lang.String nodeId, java.lang.String generation) -
ShardSnapshotStatus
public ShardSnapshotStatus(@Nullable java.lang.String nodeId, SnapshotsInProgress.ShardState state, @Nullable java.lang.String generation) -
ShardSnapshotStatus
public ShardSnapshotStatus(@Nullable java.lang.String nodeId, SnapshotsInProgress.ShardState state, java.lang.String reason, @Nullable java.lang.String generation) -
ShardSnapshotStatus
- Throws:
java.io.IOException
-
-
Method Details
-
state
-
nodeId
@Nullable public java.lang.String nodeId() -
generation
@Nullable public java.lang.String generation() -
reason
public java.lang.String reason() -
isActive
public boolean isActive()Checks if this shard snapshot is actively executing. A shard is defined as actively executing if it either is in a state that may write to the repository (SnapshotsInProgress.ShardState.INITorSnapshotsInProgress.ShardState.ABORTED) or about to write to it in stateSnapshotsInProgress.ShardState.WAITING. -
writeTo
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-