Class 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 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