From 4897a647138757a4a111d9f390f07a1bf16e3b40 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Sun, 1 Mar 2020 07:00:51 +0530 Subject: [PATCH] SOLR-13996: Rename LegacyReplicaSource to StandaloneReplicaSource --- .../apache/solr/handler/component/HttpShardHandler.java | 2 +- ...acyReplicaSource.java => StandaloneReplicaSource.java} | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename solr/core/src/java/org/apache/solr/handler/component/{LegacyReplicaSource.java => StandaloneReplicaSource.java} (91%) 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[] replicas; - public LegacyReplicaSource(Builder builder) { + public StandaloneReplicaSource(Builder builder) { List 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); } } }