Class ListCollectionSnapshots
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.AdminAPIBase
-
- org.apache.solr.handler.admin.api.ListCollectionSnapshots
-
- All Implemented Interfaces:
CollectionSnapshotApis.List
public class ListCollectionSnapshots extends AdminAPIBase implements CollectionSnapshotApis.List
V2 API implementation for Listing Collection Snapshots.
-
-
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 ListCollectionSnapshots(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCollectionSnapshotsResponse
listSnapshots(String collName)
This API is analogous to V1's (POST /solr/admin/collections?action=LISTSNAPSHOTS)-
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, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
ListCollectionSnapshots
@Inject public ListCollectionSnapshots(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Detail
-
listSnapshots
public ListCollectionSnapshotsResponse listSnapshots(String collName) throws Exception
This API is analogous to V1's (POST /solr/admin/collections?action=LISTSNAPSHOTS)- Specified by:
listSnapshots
in interfaceCollectionSnapshotApis.List
- Throws:
Exception
-
-