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
public abstract class BackupAPIBase extends AdminAPIBase
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, solrQueryResponse
-
Fields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext
-
-
Constructor Summary
Constructors Constructor Description BackupAPIBase(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, validateZooKeeperAwareCoreContainer
-
Methods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
BackupAPIBase
public BackupAPIBase(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Detail
-
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
protected BackupRepository createBackupRepository(String repositoryName)
-
-