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,
List<String> solrCredentials) |
| Modifier and Type | Method and Description |
|---|---|
void |
applySchemaUpdates(String collection) |
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,
List<String> solrCredentials) |
static int |
getLockssConfigSetVersion() |
void |
update() |
void |
uploadConfigSet(String collection) |
public static final String SOLR_CONFIGSET_PATH
public static final String SOLR_CONFIGSET_NAME
public static SolrArtifactIndexAdmin.SolrCloudCollectionAdmin fromCloudSolrClient(org.apache.solr.client.solrj.impl.CloudSolrClient cloudClient, List<String> solrCredentials)
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(String collection) throws IOException, SolrResponseErrorException, org.apache.solr.client.solrj.SolrServerException
IOExceptionSolrResponseErrorExceptionorg.apache.solr.client.solrj.SolrServerExceptionpublic void applySchemaUpdates(String collection)
public boolean collectionExists(String collectionName) throws IOException, org.apache.solr.client.solrj.SolrServerException
collectionName - IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionCopyright © 2000–2021 LOCKSS Program. All rights reserved.