Class RebalanceLeadersAPI
- java.lang.Object
-
- org.apache.solr.handler.admin.api.RebalanceLeadersAPI
-
public class RebalanceLeadersAPI extends Object
V2 API for balancing shard leaders in a collection across nodes.This API (POST /v2/collections/collectionName {'rebalance-leaders': {...}}) is analogous to the v1 /admin/collections?action=REBALANCELEADERS command.
- See Also:
RebalanceLeadersPayload
-
-
Constructor Summary
Constructors Constructor Description RebalanceLeadersAPI(CollectionsHandler collectionsHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
rebalanceLeaders(PayloadObj<org.apache.solr.client.solrj.request.beans.RebalanceLeadersPayload> obj)
-
-
-
Constructor Detail
-
RebalanceLeadersAPI
public RebalanceLeadersAPI(CollectionsHandler collectionsHandler)
-
-
Method Detail
-
rebalanceLeaders
public void rebalanceLeaders(PayloadObj<org.apache.solr.client.solrj.request.beans.RebalanceLeadersPayload> obj) throws Exception
- Throws:
Exception
-
-