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 {
replicaSource = new LegacyReplicaSource.Builder()
replicaSource = new StandaloneReplicaSource.Builder()
.whitelistHostChecker(hostChecker)
.shards(shards)
.build();

View File

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