public class SolrArtifactIndexAdmin extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SolrArtifactIndexAdmin.ArtifactIndexSchemaUpdater
Deprecated.
|
static class |
SolrArtifactIndexAdmin.LocalSolrCoreAdmin
This class contains operations necessary to administrate a Solr core on a local filesystem.
|
static class |
SolrArtifactIndexAdmin.SolrArtifactIndexReindex
This static class contains SolrArtifactIndex reindex operations.
|
static class |
SolrArtifactIndexAdmin.SolrCloudCollectionAdmin |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SOLRCORE_NAME
Default Solr core name for SolrArtifactIndex implementations.
|
static String |
KEY_ACTION |
static String |
KEY_CLOUD |
static String |
KEY_COLLECTION |
static String |
KEY_CORE |
static String |
KEY_LOCAL |
static String |
KEY_ZKHOST |
static int |
LATEST_LOCKSS_CONFIGSET_VERSION
Latest version of the LOCKSS configuration set for
SolrArtifactIndex. |
static String |
LOCKSS_CONFIGSET_VERSION_KEY
The key in the custom user properties of the Solr core configuration overlay, used to track a Solr core's version
of its installed LOCKSS configuration set.
|
static org.apache.lucene.util.Version |
TARGET_LUCENE_VERSION
Target version of the Lucene index and segments.
|
| Constructor and Description |
|---|
SolrArtifactIndexAdmin() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
coreExists(org.apache.solr.client.solrj.SolrClient solrClient,
String coreName)
Determines whether a core exists in a Solr instance running in stand-alone mode by attempting to retrieve its
status.
|
List<String> |
getAvailableConfigSets(org.apache.solr.client.solrj.SolrClient solrClient)
Returns the names of available configuration sets on this Solr instance.
|
static void |
main(String[] args) |
static void |
runAction(org.apache.commons.cli.CommandLine cmd) |
public static final String DEFAULT_SOLRCORE_NAME
public static final int LATEST_LOCKSS_CONFIGSET_VERSION
SolrArtifactIndex.public static final org.apache.lucene.util.Version TARGET_LUCENE_VERSION
public static final String LOCKSS_CONFIGSET_VERSION_KEY
public static final String KEY_ACTION
public static final String KEY_CORE
public static final String KEY_LOCAL
public static final String KEY_COLLECTION
public static final String KEY_CLOUD
public static final String KEY_ZKHOST
public static boolean coreExists(org.apache.solr.client.solrj.SolrClient solrClient,
String coreName)
throws IOException,
org.apache.solr.client.solrj.SolrServerException
solrClient - coreName - IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionpublic List<String> getAvailableConfigSets(org.apache.solr.client.solrj.SolrClient solrClient) throws IOException, org.apache.solr.client.solrj.SolrServerException
solrClient - A SolrClient instance to get the list of configuration set names from.List<String> containing the names of the configuration sets available.IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionpublic static void runAction(org.apache.commons.cli.CommandLine cmd)
throws IOException,
org.apache.solr.client.solrj.SolrServerException,
SolrResponseErrorException
IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionSolrResponseErrorExceptionpublic static void main(String[] args) throws org.apache.commons.cli.ParseException, IOException, SolrResponseErrorException, org.apache.solr.client.solrj.SolrServerException
org.apache.commons.cli.ParseExceptionIOExceptionSolrResponseErrorExceptionorg.apache.solr.client.solrj.SolrServerExceptionCopyright © 2000–2020 LOCKSS Program. All rights reserved.