Package | Description |
---|---|
org.apache.solr.cloud |
Classes for dealing with ZooKeeper when operating in SolrCloud mode.
|
Modifier and Type | Method and Description |
---|---|
ElectionContext |
ElectionContext.copy() |
ElectionContext |
LeaderElector.getContext() |
Modifier and Type | Method and Description |
---|---|
int |
LeaderElector.joinElection(ElectionContext context,
boolean replacement) |
int |
LeaderElector.joinElection(ElectionContext context,
boolean replacement,
boolean joinAtHead)
Begin participating in the election process.
|
protected void |
LeaderElector.runIamLeaderProcess(ElectionContext context,
boolean weAreReplacement) |
void |
LeaderElector.setup(ElectionContext context)
Set up any ZooKeeper nodes needed for leader election.
|
Constructor and Description |
---|
LeaderElector(SolrZkClient zkClient,
org.apache.solr.cloud.ZkController.ContextKey key,
Map<org.apache.solr.cloud.ZkController.ContextKey,ElectionContext> electionContexts) |
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.