Class CancelAllocationCommand

java.lang.Object
org.elasticsearch.cluster.routing.allocation.command.CancelAllocationCommand
All Implemented Interfaces:
AllocationCommand, NamedWriteable, Writeable, ToXContent, ToXContentObject

public class CancelAllocationCommand
extends java.lang.Object
implements AllocationCommand
A command that cancels relocation, or recovery of a given shard on a node.
  • Field Details

  • Constructor Details

    • CancelAllocationCommand

      public CancelAllocationCommand​(java.lang.String index, int shardId, java.lang.String node, boolean allowPrimary)
      Parameters:
      index - index of the shard which allocation should be canceled
      shardId - id of the shard which allocation should be canceled
      node - id of the node that manages the shard which allocation should be canceled
    • CancelAllocationCommand

      public CancelAllocationCommand​(StreamInput in) throws java.io.IOException
      Read from a stream.
      Throws:
      java.io.IOException
  • Method Details