Class DeleteCollectionSnapshotAPI
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.AdminAPIBase
-
- org.apache.solr.handler.admin.api.DeleteCollectionSnapshotAPI
-
@Path("/collections/{collName}/snapshots") public class DeleteCollectionSnapshotAPI extends AdminAPIBaseV2 API for Deleting Collection Snapshots.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeleteCollectionSnapshotAPI.DeleteSnapshotResponseThe Response forDeleteCollectionSnapshotAPI'sdeleteSnapshot(String, String, boolean, String)
-
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 DeleteCollectionSnapshotAPI(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.solr.common.cloud.ZkNodePropscreateRemoteMessage(String collectionName, boolean followAliases, String snapshotName, String asyncId)DeleteCollectionSnapshotAPI.DeleteSnapshotResponsedeleteSnapshot(String collName, String snapshotName, boolean followAliases, String asyncId)This API is analogous to V1's (POST /solr/admin/collections?action=DELETESNAPSHOT)-
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, instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
DeleteCollectionSnapshotAPI
@Inject public DeleteCollectionSnapshotAPI(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Detail
-
deleteSnapshot
@DELETE @Path("/{snapshotName}") @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public DeleteCollectionSnapshotAPI.DeleteSnapshotResponse deleteSnapshot(@PathParam("collName") String collName, @PathParam("snapshotName") String snapshotName, @DefaultValue("false") @QueryParam("followAliases") boolean followAliases, @QueryParam("async") String asyncId) throws ExceptionThis API is analogous to V1's (POST /solr/admin/collections?action=DELETESNAPSHOT)- Throws:
Exception
-
-