Class FailedShard
org.elasticsearch.cluster.routing.allocation.FailedShard
public class FailedShard
extends
A class representing a failed shard.
-
Constructor Summary
ConstructorDescriptionFailedShard(ShardRouting routingEntry, message, failure, boolean markAsStale)
-
Method Summary
Modifier and TypeMethodDescriptionThe 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.toString()
Methods inherited from class java.lang.
, , , , , , , , ,
-
Constructor Details
-
FailedShard
-
-
Method Details
-
toString
public toString()- Overrides:
in class
-
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.
-