Class BackupAPIBase
java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.admin.api.AdminAPIBase
org.apache.solr.handler.admin.api.BackupAPIBase
- Direct Known Subclasses:
CreateCollectionBackup,DeleteCollectionBackup,ListCollectionBackups,RestoreCollection
Base class that facilitates reuse of common validation logic for collection-backup APIs.
-
Field Summary
Fields inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
coreContainer, solrQueryRequest, solrQueryResponseFields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext -
Constructor Summary
ConstructorsConstructorDescriptionBackupAPIBase(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse) -
Method Summary
Modifier and TypeMethodDescriptionprotected BackupRepositorycreateBackupRepository(String repositoryName) protected StringgetAndValidateBackupLocation(String repositoryName, String location) protected StringgetAndValidateIncrementalBackupLocation(String repositoryName, String location, String backupName) Methods inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
disableResponseCaching, fetchAndValidateZooKeeperAwareCoreContainer, insertIfNotNull, recordCollectionForLogAndTracing, resolveAndValidateAliasIfEnabled, resolveCollectionName, submitRemoteMessageAndHandleResponse, validateZooKeeperAwareCoreContainerMethods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
Constructor Details
-
BackupAPIBase
public BackupAPIBase(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Details
-
getAndValidateBackupLocation
protected String getAndValidateBackupLocation(String repositoryName, String location) throws IOException - Throws:
IOException
-
getAndValidateIncrementalBackupLocation
protected String getAndValidateIncrementalBackupLocation(String repositoryName, String location, String backupName) throws IOException - Throws:
IOException
-
createBackupRepository
-