Class RejoinLeaderElectionAPI
- java.lang.Object
-
- org.apache.solr.handler.admin.api.RejoinLeaderElectionAPI
-
public class RejoinLeaderElectionAPI extends Object
V2 API for triggering a core to rejoin leader election for the shard it constitutes.This API (POST /v2/node {'rejoin-leader-election': {...}}) is analogous to the v1 /admin/cores?action=REJOINLEADERELECTION command.
-
-
Field Summary
Fields Modifier and Type Field Description static String
REJOIN_LEADER_ELECTION_CMD
-
Constructor Summary
Constructors Constructor Description RejoinLeaderElectionAPI(CoreAdminHandler coreAdminHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
rejoinLeaderElection(PayloadObj<org.apache.solr.client.solrj.request.beans.RejoinLeaderElectionPayload> payload)
-
-
-
Field Detail
-
REJOIN_LEADER_ELECTION_CMD
public static final String REJOIN_LEADER_ELECTION_CMD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RejoinLeaderElectionAPI
public RejoinLeaderElectionAPI(CoreAdminHandler coreAdminHandler)
-
-
Method Detail
-
rejoinLeaderElection
public void rejoinLeaderElection(PayloadObj<org.apache.solr.client.solrj.request.beans.RejoinLeaderElectionPayload> payload) throws Exception
- Throws:
Exception
-
-