* Creates a new DistributorDirectory from multiple directories. Note: The first directory in the given array
* is used as the primary directory holding the file locks as well as the SEGMENTS_GEN file. All remaining
* directories are used in a round robin fashion.
*/
public DistributorDirectory(final Directory... dirs) throws IOException {
this(new Distributor() {
final AtomicInteger count = new AtomicInteger();
@Override
public Directory primary() {
return dirs[0];