Interface ShardRoutingRoleStrategy


public interface ShardRoutingRoleStrategy
  • Field Details

    • NO_SHARD_CREATION

      static final ShardRoutingRoleStrategy NO_SHARD_CREATION
      A strategy that refuses to create any new shard copies, which is used (for instance) when reading shard copies from a remote node.
  • Method Details

    • newEmptyRole

      ShardRouting.Role newEmptyRole(int copyIndex)
      Returns:
      the role for a copy of a new empty shard, where copyIndex is the index of the copy (0 for the primary and 1..N for replicas).
    • newReplicaRole

      ShardRouting.Role newReplicaRole()
      Returns:
      the role for a new replica copy of an existing shard.
    • newRestoredRole

      default ShardRouting.Role newRestoredRole(int copyIndex)
      Returns:
      the role for a copy of a new shard being restored from snapshot, where copyIndex is the index of the copy (0 for the primary and 1..N for replicas).