Class SnapshotShardsStats

java.lang.Object
org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotShardsStats
All Implemented Interfaces:
ToXContent, ToXContentObject

public class SnapshotShardsStats extends Object implements ToXContentObject
Status of a snapshot shards
  • Constructor Details

    • SnapshotShardsStats

      public SnapshotShardsStats(int initializingShards, int startedShards, int finalizingShards, int doneShards, int failedShards, int totalShards)
  • Method Details

    • getInitializingShards

      public int getInitializingShards()
      Number of shards with the snapshot in the initializing stage
    • getStartedShards

      public int getStartedShards()
      Number of shards with the snapshot in the started stage
    • getFinalizingShards

      public int getFinalizingShards()
      Number of shards with the snapshot in the finalizing stage
    • getDoneShards

      public int getDoneShards()
      Number of shards with completed snapshot
    • getFailedShards

      public int getFailedShards()
      Number of shards with failed snapshot
    • getTotalShards

      public int getTotalShards()
      Total number of shards
    • toXContent

      public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface ToXContent
      Throws:
      IOException
    • fromXContent

      public static SnapshotShardsStats fromXContent(XContentParser parser)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object