Class RotationShardShuffler

java.lang.Object
org.elasticsearch.cluster.routing.ShardShuffler
org.elasticsearch.cluster.routing.RotationShardShuffler

public class RotationShardShuffler
extends ShardShuffler
Basic ShardShuffler implementation that uses an AtomicInteger to generate seeds and uses a rotation to permute shards.
  • Constructor Summary

    Constructors 
    Constructor Description
    RotationShardShuffler​(int seed)  
  • Method Summary

    Modifier and Type Method Description
    int nextSeed()
    Return a new seed.
    java.util.List<ShardRouting> shuffle​(java.util.List<ShardRouting> shards, int seed)
    Return a shuffled view over the list of shards.

    Methods inherited from class org.elasticsearch.cluster.routing.ShardShuffler

    shuffle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait