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 Closeable
close
in interface AutoCloseable
public void cancelElection() throws InterruptedException, org.apache.zookeeper.KeeperException
InterruptedException
org.apache.zookeeper.KeeperException
public void checkIfIamLeaderFired()
public void joinedElectionFired()
public ElectionContext copy()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.