Class CollectionSnapshotsApi.CreateCollectionSnapshot
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<CreateCollectionSnapshotResponse>
org.apache.solr.client.solrj.request.CollectionSnapshotsApi.CreateCollectionSnapshot
- All Implemented Interfaces:
Serializable
- Enclosing class:
CollectionSnapshotsApi
public static class CollectionSnapshotsApi.CreateCollectionSnapshot
extends SolrRequest<CreateCollectionSnapshotResponse>
- 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
ConstructorsConstructorDescriptionCreateCollectionSnapshot(String collName, String snapshotName) Create a CreateCollectionSnapshot request object. -
Method Summary
Modifier and TypeMethodDescriptionprotected CreateCollectionSnapshotResponsecreateResponse(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 stringvoidvoidsetFollowAliases(Boolean followAliases) 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
-
CreateCollectionSnapshot
Create a CreateCollectionSnapshot request object.- Parameters:
collName- Path param - The name of the collection.snapshotName- Path param - The name of the snapshot to be created.
-
-
Method Details
-
setAsync
-
setFollowAliases
-
getContentWriter
Description copied from class:SolrRequestIf a request object wants to do a push write, implement this method.- Overrides:
getContentWriterin classSolrRequest<CreateCollectionSnapshotResponse>- 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<CreateCollectionSnapshotResponse>
-
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<CreateCollectionSnapshotResponse>
-
getQueryParams
Description copied from class:SolrRequestParameter keys that are sent via the query string- Overrides:
getQueryParamsin classSolrRequest<CreateCollectionSnapshotResponse>
-
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<CreateCollectionSnapshotResponse>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-
getResponseParser
- Overrides:
getResponseParserin classSolrRequest<CreateCollectionSnapshotResponse>- Returns:
- The
ResponseParser
-