public static class HttpShardHandlerFactory.WhitelistHostChecker extends Object
Constructor and Description |
---|
WhitelistHostChecker(String whitelistStr,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
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)
|
protected void |
checkWhitelist(String shardsParamValue,
List<String> shardUrls) |
boolean |
hasExplicitWhitelist() |
boolean |
isWhitelistHostCheckingEnabled() |
String |
toString() |
public WhitelistHostChecker(String whitelistStr, boolean enabled)
protected void checkWhitelist(ClusterState clusterState, String shardsParamValue, List<String> shardUrls)
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.public boolean hasExplicitWhitelist()
public boolean isWhitelistHostCheckingEnabled()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.