Class CollectionBackupsApi.RestoreCollection
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
-
- org.apache.solr.client.solrj.request.CollectionBackupsApi.RestoreCollection
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- CollectionBackupsApi
public static class CollectionBackupsApi.RestoreCollection extends SolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
- See Also:
- Serialized Form
-
-
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, useBinaryV2, usev2
-
-
Constructor Summary
Constructors Constructor Description RestoreCollection(String backupName)
Create a RestoreCollection request object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CollectionBackupsApi.RestoreCollectionResponse
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the serverSolrRequest.ApiVersion
getApiVersion()
Indicates which API version this request will makeRequestWriter.ContentWriter
getContentWriter(String expectedType)
If a request object wants to do a push write, implement this method.SolrParams
getParams()
String
getRequestType()
This method defines the type of this Solr request.ResponseParser
getResponseParser()
void
setAsync(String async)
void
setBackupId(Integer backupId)
void
setCollection(String collection)
void
setCreateCollectionParams(CreateCollectionRequestBody createCollectionParams)
void
setLocation(String location)
void
setRepository(String repository)
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getHeaders, getMethod, getPath, getPreferredNodes, getQueryParams, getStreamingResponseCallback, getUserPrincipal, process, process, requiresCollection, setBasePath, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Constructor Detail
-
RestoreCollection
public RestoreCollection(String backupName)
Create a RestoreCollection request object.- Parameters:
backupName
- Path param -
-
-
Method Detail
-
setCollection
public void setCollection(String collection)
-
setLocation
public void setLocation(String location)
-
setRepository
public void setRepository(String repository)
-
setBackupId
public void setBackupId(Integer backupId)
-
setAsync
public void setAsync(String async)
-
setCreateCollectionParams
public void setCreateCollectionParams(CreateCollectionRequestBody createCollectionParams)
-
getContentWriter
public RequestWriter.ContentWriter getContentWriter(String expectedType)
Description copied from class:SolrRequest
If a request object wants to do a push write, implement this method.- Overrides:
getContentWriter
in classSolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
- Parameters:
expectedType
- This is the type that the RequestWriter would like to get. But, it is OK to send any format
-
getRequestType
public String getRequestType()
Description copied from class:SolrRequest
This method defines the type of this Solr request.- Specified by:
getRequestType
in classSolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
-
getApiVersion
public SolrRequest.ApiVersion getApiVersion()
Description copied from class:SolrRequest
Indicates which API version this request will makeDefaults implementation returns 'V1'.
- Overrides:
getApiVersion
in classSolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
-
getParams
public SolrParams getParams()
- Specified by:
getParams
in classSolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
-
createResponse
protected CollectionBackupsApi.RestoreCollectionResponse createResponse(SolrClient client)
Description copied from class:SolrRequest
Create a new SolrResponse to hold the response from the server- Specified by:
createResponse
in classSolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
- Parameters:
client
- theSolrClient
the request will be sent to
-
getResponseParser
public ResponseParser getResponseParser()
- Overrides:
getResponseParser
in classSolrRequest<CollectionBackupsApi.RestoreCollectionResponse>
- Returns:
- The
ResponseParser
-
-