Class CoreSnapshot
java.lang.Object
org.apache.solr.api.JerseyResource
org.apache.solr.handler.admin.api.CoreAdminAPIBase
org.apache.solr.handler.admin.api.CoreSnapshot
- All Implemented Interfaces:
CoreSnapshotApi
V2 API for Creating, Listing, and Deleting Core Snapshots.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.handler.admin.api.CoreAdminAPIBase
CoreAdminAPIBase.CoreAdminAPIBaseException -
Field Summary
Fields inherited from class org.apache.solr.handler.admin.api.CoreAdminAPIBase
coreAdminAsyncTracker, coreContainer, req, rspFields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext -
Constructor Summary
ConstructorsConstructorDescriptionCoreSnapshot(SolrQueryRequest request, SolrQueryResponse response, CoreContainer coreContainer, CoreAdminHandler.CoreAdminAsyncTracker coreAdminAsyncTracker) -
Method Summary
Modifier and TypeMethodDescriptioncreateSnapshot(String coreName, String snapshotName, String taskId) This API is analogous to V1 (POST /solr/admin/cores?action=CREATESNAPSHOT)deleteSnapshot(String coreName, String snapshotName, String taskId) This API is analogous to V1 (DELETE /solr/admin/cores?action=DELETESNAPSHOT)listSnapshots(String coreName) This API is analogous to V1 (GET /solr/admin/cores?action=LISTSNAPSHOTS)Methods inherited from class org.apache.solr.handler.admin.api.CoreAdminAPIBase
handlePotentiallyAsynchronousTaskMethods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
Constructor Details
-
CoreSnapshot
@Inject public CoreSnapshot(SolrQueryRequest request, SolrQueryResponse response, CoreContainer coreContainer, CoreAdminHandler.CoreAdminAsyncTracker coreAdminAsyncTracker)
-
-
Method Details
-
createSnapshot
public CreateCoreSnapshotResponse createSnapshot(String coreName, String snapshotName, String taskId) throws Exception This API is analogous to V1 (POST /solr/admin/cores?action=CREATESNAPSHOT)- Specified by:
createSnapshotin interfaceCoreSnapshotApi- Throws:
Exception
-
listSnapshots
This API is analogous to V1 (GET /solr/admin/cores?action=LISTSNAPSHOTS)- Specified by:
listSnapshotsin interfaceCoreSnapshotApi- Throws:
Exception
-
deleteSnapshot
public DeleteSnapshotResponse deleteSnapshot(String coreName, String snapshotName, String taskId) throws Exception This API is analogous to V1 (DELETE /solr/admin/cores?action=DELETESNAPSHOT)- Specified by:
deleteSnapshotin interfaceCoreSnapshotApi- Throws:
Exception
-