Package org.apache.solr.cloud
Class CloudUtil
java.lang.Object
org.apache.solr.cloud.CloudUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSee if coreNodeName has been taken over by another baseUrl and unload core + throw exception if it has been.getTrustedKeys(org.apache.solr.common.cloud.SolrZkClient zk, String dir) Read the list of public keys from ZKstatic booleanreplicaExists(org.apache.solr.common.cloud.ClusterState clusterState, String collection, String shard, String coreNodeName) static StringReturns a displayable unified path to the given resource.
-
Constructor Details
-
CloudUtil
public CloudUtil()
-
-
Method Details
-
replicaExists
-
unifiedResourcePath
Returns a displayable unified path to the given resource. For non-solrCloud that will be the same as getConfigDir, but for Cloud it will be getConfigSetZkPath ending in a /Note: Do not use this to generate a valid file path, but for debug printing etc
- Parameters:
loader- Resource loader instance- Returns:
- a String of path to resource
-
getTrustedKeys
public static Map<String,byte[]> getTrustedKeys(org.apache.solr.common.cloud.SolrZkClient zk, String dir) Read the list of public keys from ZK