org.elasticsearch.cluster.routing.allocation.FailedShard

public class FailedShard extends
A class representing a failed shard.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FailedShard​(ShardRouting routingEntry,  message,  failure, boolean markAsStale)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    The exception, if present, causing the shard to fail.
    The failure message, if available, explaining why the shard failed.
    The shard routing entry for the failed shard.
    boolean
    Whether or not to mark the shard as stale (eg.
     

    Methods inherited from class java.lang.

    , , , , , , , , ,
  • Constructor Details

    • FailedShard

      public FailedShard(ShardRouting routingEntry,  message, @Nullable  failure, boolean markAsStale)
  • Method Details

    • toString

      public  toString()
      Overrides:
       in class 
    • getRoutingEntry

      public ShardRouting getRoutingEntry()
      The shard routing entry for the failed shard.
    • getMessage

      @Nullable public  getMessage()
      The failure message, if available, explaining why the shard failed.
    • getFailure

      @Nullable public  getFailure()
      The exception, if present, causing the shard to fail.
    • markAsStale

      public boolean markAsStale()
      Whether or not to mark the shard as stale (eg. removing from in-sync set) when failing the shard.