public abstract class ElectionContext extends Object implements Closeable
| Constructor and Description | 
|---|
ElectionContext(String coreNodeName,
               String electionPath,
               String leaderPath,
               ZkNodeProps leaderProps,
               SolrZkClient zkClient)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
cancelElection()  | 
void | 
checkIfIamLeaderFired()  | 
void | 
close()  | 
ElectionContext | 
copy()  | 
void | 
joinedElectionFired()  | 
public ElectionContext(String coreNodeName, String electionPath, String leaderPath, ZkNodeProps leaderProps, SolrZkClient zkClient)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void cancelElection()
                    throws InterruptedException,
                           org.apache.zookeeper.KeeperException
InterruptedExceptionorg.apache.zookeeper.KeeperExceptionpublic void checkIfIamLeaderFired()
public void joinedElectionFired()
public ElectionContext copy()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.