Skip to content

Apache Lucene open-source search software

SOLR-13996: Rename LegacyReplicaSource to StandaloneReplicaSource

Shalin Shekhar Mangar4897a6471387
diff --git a/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java b/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java
index ca6dddf7b21..f23cf163a96 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/HttpShardHandler.java
@@ -326,7 +326,7 @@ public class HttpShardHandler extends ShardHandler {
}
}
} else {
- replicaSource = new LegacyReplicaSource.Builder()
+ replicaSource = new StandaloneReplicaSource.Builder()
.whitelistHostChecker(hostChecker)
.shards(shards)
.build();
diff --git a/solr/core/src/java/org/apache/solr/handler/component/LegacyReplicaSource.java b/solr/core/src/java/org/apache/solr/handler/component/StandaloneReplicaSource.java
similarity index 91%
rename from solr/core/src/java/org/apache/solr/handler/component/LegacyReplicaSource.java
rename to solr/core/src/java/org/apache/solr/handler/component/StandaloneReplicaSource.java
index a67d3a57ad2..33a515354ab 100644
--- a/solr/core/src/java/org/apache/solr/handler/component/LegacyReplicaSource.java
+++ b/solr/core/src/java/org/apache/solr/handler/component/StandaloneReplicaSource.java
@@ -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);
}
}
}