SOLR-13996: Rename LegacyReplicaSource to StandaloneReplicaSource

This commit is contained in:
Shalin Shekhar Mangar 2020-03-01 07:00:51 +05:30
parent 5f9bf6b707
commit 4897a64713
2 changed files with 5 additions and 5 deletions

View File

@ -326,7 +326,7 @@ public class HttpShardHandler extends ShardHandler {
} }
} }
} else { } else {
replicaSource = new LegacyReplicaSource.Builder() replicaSource = new StandaloneReplicaSource.Builder()
.whitelistHostChecker(hostChecker) .whitelistHostChecker(hostChecker)
.shards(shards) .shards(shards)
.build(); .build();

View File

@ -25,10 +25,10 @@ import org.apache.solr.common.util.StrUtils;
/** /**
* A replica source for solr stand alone mode * A replica source for solr stand alone mode
*/ */
class LegacyReplicaSource implements ReplicaSource { class StandaloneReplicaSource implements ReplicaSource {
private List<String>[] replicas; private List<String>[] replicas;
public LegacyReplicaSource(Builder builder) { public StandaloneReplicaSource(Builder builder) {
List<String> list = StrUtils.splitSmart(builder.shardsParam, ",", true); List<String> list = StrUtils.splitSmart(builder.shardsParam, ",", true);
replicas = new List[list.size()]; replicas = new List[list.size()];
for (int i = 0; i < list.size(); i++) { for (int i = 0; i < list.size(); i++) {
@ -70,8 +70,8 @@ class LegacyReplicaSource implements ReplicaSource {
return this; return this;
} }
public LegacyReplicaSource build() { public StandaloneReplicaSource build() {
return new LegacyReplicaSource(this); return new StandaloneReplicaSource(this);
} }
} }
} }