Class BasePrimaryAllocationCommand

java.lang.Object
org.elasticsearch.cluster.routing.allocation.command.AbstractAllocateAllocationCommand
org.elasticsearch.cluster.routing.allocation.command.BasePrimaryAllocationCommand
All Implemented Interfaces:
AllocationCommand, NamedWriteable, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Direct Known Subclasses:
AllocateEmptyPrimaryAllocationCommand, AllocateStalePrimaryAllocationCommand

public abstract class BasePrimaryAllocationCommand
extends AbstractAllocateAllocationCommand
Abstract base class for allocating an unassigned primary shard to a node
  • Field Details

    • acceptDataLoss

      protected final boolean acceptDataLoss
  • Constructor Details

    • BasePrimaryAllocationCommand

      protected BasePrimaryAllocationCommand​(java.lang.String index, int shardId, java.lang.String node, boolean acceptDataLoss)
    • BasePrimaryAllocationCommand

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