Class ListCollections
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.AdminAPIBase
-
- org.apache.solr.handler.admin.api.ListCollections
-
- All Implemented Interfaces:
ListCollectionsApi
public class ListCollections extends AdminAPIBase implements ListCollectionsApi
V2 API for listing collections.This API (GET /v2/collections) is equivalent to the v1 /admin/collections?action=LIST command
-
-
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 ListCollections(CoreContainer coreContainer, SolrQueryRequest req, SolrQueryResponse rsp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListCollectionsResponse
listCollections()
-
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
-
ListCollections
@Inject public ListCollections(CoreContainer coreContainer, SolrQueryRequest req, SolrQueryResponse rsp)
-
-
Method Detail
-
listCollections
public ListCollectionsResponse listCollections()
- Specified by:
listCollections
in interfaceListCollectionsApi
-
-