Class CoreBackupsApi.CreateBackup
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<SolrJerseyResponse>
org.apache.solr.client.solrj.request.CoreBackupsApi.CreateBackup
- All Implemented Interfaces:
Serializable
- Enclosing class:
CoreBackupsApi
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType -
Field Summary
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SolrJerseyResponsecreateResponse(NamedList<Object> namedList) Create a new SolrResponse to hold the response from the server.Indicates which API version this request will makegetContentWriter(String _expectedTypeIGNORE) If a request object wants to do a push write, implement this method.The parameters for this request; never null.Parameter keys that are sent via the query stringvoidvoidsetBackupName(String backupName) voidsetCommitName(String commitName) voidsetIncremental(Boolean incremental) voidsetLocation(String location) voidsetPrevShardBackupId(String prevShardBackupId) voidsetRepository(String repository) voidsetShardBackupId(String shardBackupId) Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getHeaders, getMethod, getPath, getPreferredNodes, getRequestType, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, requiresCollection, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
CreateBackup
Create a CreateBackup request object.- Parameters:
coreName- Path param - The name of the core.
-
-
Method Details
-
setRepository
- Parameters:
repository- The name of the repository to be used for backup.
-
setLocation
- Parameters:
location- The path where the backup will be created
-
setShardBackupId
-
setPrevShardBackupId
-
setCommitName
- Parameters:
commitName- The name of the commit which was used while taking a snapshot using the CREATESNAPSHOT command.
-
setIncremental
- Parameters:
incremental- To turn on incremental backup feature
-
setAsync
- Parameters:
async- Request ID to track this action which will be processed asynchronously.
-
setBackupName
- Parameters:
backupName- A descriptive name for the backup. Only used by non-incremental backups.
-
getContentWriter
Description copied from class:SolrRequestIf a request object wants to do a push write, implement this method.- Overrides:
getContentWriterin classSolrRequest<SolrJerseyResponse>- Parameters:
_expectedTypeIGNORE- This is the type that the RequestWriter would like to get. But, it is OK to send any format
-
getApiVersion
Description copied from class:SolrRequestIndicates which API version this request will makeDefaults implementation returns 'V1'.
- Overrides:
getApiVersionin classSolrRequest<SolrJerseyResponse>
-
getParams
Description copied from class:SolrRequestThe parameters for this request; never null. The runtime type may be mutable but modifications may not affect thisSolrRequestinstance, as it may return a new instance here every time. If the subclass specifies the response type asModifiableSolrParams, then one can expect it to change this request. If the subclass has a setter then one can expect this method to return the value set.- Specified by:
getParamsin classSolrRequest<SolrJerseyResponse>
-
getQueryParams
Description copied from class:SolrRequestParameter keys that are sent via the query string- Overrides:
getQueryParamsin classSolrRequest<SolrJerseyResponse>
-
createResponse
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server. If the response extendsSolrResponse, then there's no need to use the arguments, asSolrResponse.setResponse(NamedList)will be called right after this method.- Specified by:
createResponsein classSolrRequest<SolrJerseyResponse>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-
getResponseParser
- Overrides:
getResponseParserin classSolrRequest<SolrJerseyResponse>- Returns:
- The
ResponseParser
-