Class ForceLeaderAPI
- java.lang.Object
-
- org.apache.solr.handler.admin.api.ForceLeaderAPI
-
public class ForceLeaderAPI extends Object
V2 API for triggering a leader election on a particular collection and shard.This API (POST /v2/collections/collectionName/shards/shardName {'force-leader': {}}) is analogous to the v1 /admin/collections?action=FORCELEADER command.
- See Also:
ForceLeaderPayload
-
-
Constructor Summary
Constructors Constructor Description ForceLeaderAPI(CollectionsHandler collectionsHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceLeader(PayloadObj<org.apache.solr.client.solrj.request.beans.ForceLeaderPayload> obj)
-
-
-
Constructor Detail
-
ForceLeaderAPI
public ForceLeaderAPI(CollectionsHandler collectionsHandler)
-
-
Method Detail
-
forceLeader
public void forceLeader(PayloadObj<org.apache.solr.client.solrj.request.beans.ForceLeaderPayload> obj) throws Exception
- Throws:
Exception
-
-