public static class SolrArtifactIndexAdmin.SolrCloudCollectionAdmin extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SOLR_CONFIGSET_NAME |
static String |
SOLR_CONFIGSET_PATH |
| Constructor and Description |
|---|
SolrCloudCollectionAdmin(org.apache.solr.client.solrj.impl.CloudSolrClient cloudClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
applySchemaUpdates() |
boolean |
collectionExists(String collectionName)
Returns a boolean indicating whether a collection exists in a Solr Cloud cluster.
|
static org.apache.solr.client.solrj.impl.CloudSolrClient |
createSolrCloudClient(String solrUrl,
String zkHost)
Creates a CloudSolrClient instance given Solr and ZooKeeper endpoints.
|
static SolrArtifactIndexAdmin.SolrCloudCollectionAdmin |
fromCloudSolrClient(org.apache.solr.client.solrj.impl.CloudSolrClient cloudClient) |
static int |
getLockssConfigSetVersion() |
void |
update() |
void |
uploadConfigSet() |
public static final String SOLR_CONFIGSET_PATH
public static final String SOLR_CONFIGSET_NAME
public SolrCloudCollectionAdmin(org.apache.solr.client.solrj.impl.CloudSolrClient cloudClient)
public static SolrArtifactIndexAdmin.SolrCloudCollectionAdmin fromCloudSolrClient(org.apache.solr.client.solrj.impl.CloudSolrClient cloudClient)
public static org.apache.solr.client.solrj.impl.CloudSolrClient createSolrCloudClient(String solrUrl, String zkHost)
solrUrl - A String containing the URL to a Solr REST endpoint.zkHost - A String containing the host and port of the ZooKeeper instance used by the Solr Cloud.CloudSolrClient instance.public void update()
public static int getLockssConfigSetVersion()
public void uploadConfigSet()
throws IOException,
SolrResponseErrorException,
org.apache.solr.client.solrj.SolrServerException
IOExceptionSolrResponseErrorExceptionorg.apache.solr.client.solrj.SolrServerExceptionpublic void applySchemaUpdates()
public boolean collectionExists(String collectionName) throws IOException, org.apache.solr.client.solrj.SolrServerException
collectionName - IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionCopyright © 2000–2020 LOCKSS Program. All rights reserved.