void function ( final ElectionContext arg0 ) { String loc0 = arg0 . electionPath + LeaderElector . ELECTION_NODE ; zkCmdExecutor . ensureExists ( loc0 , zkClient ) ; this . context = arg0 ; }
set up any zookeeper nodes needed for leader election . concode_field_sep ElectionWatcher watcher concode_elem_sep String myNode concode_elem_sep ContextKey contextKey concode_elem_sep Map<ContextKey,ElectionContext> electionContexts concode_elem_sep String ELECTION_NODE concode_elem_sep boolean canceled concode_elem_sep ZkCmdExecutor zkCmdExecutor concode_elem_sep String watchedNode concode_elem_sep Pattern NODE_NAME concode_elem_sep ElectionContext context concode_elem_sep Pattern LEADER_SEQ concode_elem_sep Logger log concode_elem_sep Pattern SESSION_ID concode_elem_sep SolrZkClient zkClient concode_field_sep void cancel concode_elem_sep void retryElection concode_elem_sep int getSeq concode_elem_sep void process concode_elem_sep String getNodeId concode_elem_sep void checkIfIamLeader concode_elem_sep int joinElection concode_elem_sep int joinElection concode_elem_sep String getNodeName concode_elem_sep ElectionContext getContext concode_elem_sep void runIamLeaderProcess concode_elem_sep void sortSeqs