Class CommandAllocatePrimaryAction

java.lang.Object
co.elastic.clients.elasticsearch.cluster.reroute.CommandAllocatePrimaryAction
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class CommandAllocatePrimaryAction
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

    • index

      public final java.lang.String index()
      Required - API name: index
    • shard

      public final int shard()
      Required - API name: shard
    • node

      public final java.lang.String node()
      Required - API name: node
    • acceptDataLoss

      public final boolean acceptDataLoss()
      Required - If a node which has a copy of the data rejoins the cluster later on, that data will be deleted. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to true

      API name: accept_data_loss

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • setupCommandAllocatePrimaryActionDeserializer

      protected static void setupCommandAllocatePrimaryActionDeserializer​(ObjectDeserializer<CommandAllocatePrimaryAction.Builder> op)