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 Summary
Constructors Constructor Description ElectionContext(String coreNodeName, String electionPath, String leaderPath, org.apache.solr.common.cloud.ZkNodeProps leaderProps, org.apache.solr.common.cloud.SolrZkClient zkClient) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelElection()voidcheckIfIamLeaderFired()voidclose()ElectionContextcopy()voidjoinedElectionFired() 
 - 
 
- 
- 
Method Detail
- 
close
public void close()
- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable
 
- 
cancelElection
public void cancelElection() throws InterruptedException, org.apache.zookeeper.KeeperException- Throws:
 InterruptedExceptionorg.apache.zookeeper.KeeperException
 
- 
checkIfIamLeaderFired
public void checkIfIamLeaderFired()
 
- 
joinedElectionFired
public void joinedElectionFired()
 
- 
copy
public ElectionContext copy()
 
 - 
 
 -