Package org.apache.solr.cloud
Class ElectionContext
- java.lang.Object
- 
- org.apache.solr.cloud.ElectionContext
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable
 
 public abstract class ElectionContext extends Object implements Closeable 
- 
- 
Constructor SummaryConstructors Constructor Description ElectionContext(String coreNodeName, String electionPath, String leaderPath, ZkNodeProps leaderProps, SolrZkClient zkClient)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelElection()voidcheckIfIamLeaderFired()voidclose()ElectionContextcopy()voidjoinedElectionFired()
 
- 
- 
- 
Constructor Detail- 
ElectionContextpublic ElectionContext(String coreNodeName, String electionPath, String leaderPath, ZkNodeProps leaderProps, SolrZkClient zkClient) 
 
- 
 - 
Method Detail- 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
 
 - 
cancelElectionpublic void cancelElection() throws InterruptedException, org.apache.zookeeper.KeeperException- Throws:
- InterruptedException
- org.apache.zookeeper.KeeperException
 
 - 
checkIfIamLeaderFiredpublic void checkIfIamLeaderFired() 
 - 
joinedElectionFiredpublic void joinedElectionFired() 
 - 
copypublic ElectionContext copy() 
 
- 
 
-