Class AllocateReplicaAllocationCommand

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

public class AllocateReplicaAllocationCommand
extends AbstractAllocateAllocationCommand
Allocates an unassigned replica shard to a specific node. Checks if allocation deciders allow allocation.
  • Field Details

    • NAME

      public static final java.lang.String NAME
      See Also:
      Constant Field Values
    • COMMAND_NAME_FIELD

      public static final org.elasticsearch.common.ParseField COMMAND_NAME_FIELD
  • Constructor Details

    • AllocateReplicaAllocationCommand

      public AllocateReplicaAllocationCommand​(java.lang.String index, int shardId, java.lang.String node)
      Parameters:
      index - index of the shard to assign
      shardId - id of the shard to assign
      node - node id of the node to assign the shard to
    • AllocateReplicaAllocationCommand

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