Class SnapshotsInProgress.ShardSnapshotStatus

java.lang.Object
org.elasticsearch.cluster.SnapshotsInProgress.ShardSnapshotStatus
All Implemented Interfaces:
Writeable
Enclosing class:
SnapshotsInProgress

public static class SnapshotsInProgress.ShardSnapshotStatus
extends java.lang.Object
implements Writeable
  • Field Details

    • UNASSIGNED_QUEUED

      public static final SnapshotsInProgress.ShardSnapshotStatus UNASSIGNED_QUEUED
      Shard snapshot status for shards that are waiting for another operation to finish before they can be assigned to a node.
    • MISSING

      public static final SnapshotsInProgress.ShardSnapshotStatus 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)
  • Method Details

    • readFrom

      public static SnapshotsInProgress.ShardSnapshotStatus readFrom​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • 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.INIT or SnapshotsInProgress.ShardState.ABORTED) or about to write to it in state SnapshotsInProgress.ShardState.WAITING.
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object