Class HttpShardHandlerFactory.WhitelistHostChecker
- java.lang.Object
-
- org.apache.solr.handler.component.HttpShardHandlerFactory.WhitelistHostChecker
-
- Enclosing class:
- HttpShardHandlerFactory
public static class HttpShardHandlerFactory.WhitelistHostChecker extends Object
Class used to validate the hosts in the "shards" parameter when doing a distributed request
-
-
Constructor Summary
Constructors Constructor Description WhitelistHostChecker(String whitelistStr, boolean enabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckWhitelist(String shardsParamValue, List<String> shardUrls)protected voidcheckWhitelist(ClusterState clusterState, String shardsParamValue, List<String> shardUrls)Checks that all the hosts for all the shards requested in shards parameter exist in the configured whitelist or in the ClusterState (in case of cloud mode)booleanhasExplicitWhitelist()booleanisWhitelistHostCheckingEnabled()StringtoString()
-
-
-
Constructor Detail
-
WhitelistHostChecker
public WhitelistHostChecker(String whitelistStr, boolean enabled)
-
-
Method Detail
-
checkWhitelist
protected void checkWhitelist(ClusterState clusterState, String shardsParamValue, List<String> shardUrls)
Checks that all the hosts for all the shards requested in shards parameter exist in the configured whitelist or in the ClusterState (in case of cloud mode)- Parameters:
clusterState- The up to date ClusterState, can be null in case of non-cloud modeshardsParamValue- The original shards parametershardUrls- The list of cores generated from the shards parameter.
-
hasExplicitWhitelist
public boolean hasExplicitWhitelist()
-
isWhitelistHostCheckingEnabled
public boolean isWhitelistHostCheckingEnabled()
-
-