Class ListAliasesAPI
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.AdminAPIBase
-
- org.apache.solr.handler.admin.api.ListAliasesAPI
-
@Path("/aliases") public class ListAliasesAPI extends AdminAPIBaseV2 APIs for managing and inspecting collection aliases
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListAliasesAPI.GetAliasByNameResponseResponse forgetAliasByName(String).static classListAliasesAPI.ListAliasesResponseResponse forgetAliases().
-
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 ListAliasesAPI(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListAliasesAPI.GetAliasByNameResponsegetAliasByName(String aliasName)ListAliasesAPI.ListAliasesResponsegetAliases()V2 API for listing all aliases known by Solr.-
Methods inherited from class org.apache.solr.handler.admin.api.AdminAPIBase
disableResponseCaching, fetchAndValidateZooKeeperAwareCoreContainer, recordCollectionForLogAndTracing, validateZooKeeperAwareCoreContainer
-
Methods inherited from class org.apache.solr.api.JerseyResource
instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
ListAliasesAPI
@Inject public ListAliasesAPI(CoreContainer coreContainer, SolrQueryRequest solrQueryRequest, SolrQueryResponse solrQueryResponse)
-
-
Method Detail
-
getAliases
@GET @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public ListAliasesAPI.ListAliasesResponse getAliases() throws ExceptionV2 API for listing all aliases known by Solr.This API
GET /api/aliasesis analogous to the v1GET /api/cluster/aliasesAPI.- Throws:
Exception
-
getAliasByName
@GET @Path("/{aliasName}") @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public ListAliasesAPI.GetAliasByNameResponse getAliasByName(@PathParam("aliasName") String aliasName) throws Exception- Throws:
Exception
-
-