org.apache.solr.cloud
Class ElectionContext

java.lang.Object
  extended by org.apache.solr.cloud.ElectionContext

public abstract class ElectionContext
extends Object


Constructor Summary
ElectionContext(String coreNodeName, String electionPath, String leaderPath, ZkNodeProps leaderProps, SolrZkClient zkClient)
           
 
Method Summary
 void cancelElection()
           
 void checkIfIamLeaderFired()
           
 void close()
           
 void joinedElectionFired()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElectionContext

public ElectionContext(String coreNodeName,
                       String electionPath,
                       String leaderPath,
                       ZkNodeProps leaderProps,
                       SolrZkClient zkClient)
Method Detail

close

public void close()

cancelElection

public void cancelElection()
                    throws InterruptedException,
                           org.apache.zookeeper.KeeperException
Throws:
InterruptedException
org.apache.zookeeper.KeeperException

checkIfIamLeaderFired

public void checkIfIamLeaderFired()

joinedElectionFired

public void joinedElectionFired()


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.