Interface EmbeddedElector
- All Superinterfaces:
AutoCloseable,Closeable,org.apache.hadoop.service.Service
- All Known Implementing Classes:
ActiveStandbyElectorBasedElectorService,CuratorBasedElectorService
@Private
@Unstable
public interface EmbeddedElector
extends org.apache.hadoop.service.Service
Interface that all embedded leader electors must implement.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Method Summary
Modifier and TypeMethodDescriptionGet information about the elector's connection to Zookeeper.voidLeave and rejoin leader election.Methods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
-
Method Details
-
rejoinElection
void rejoinElection()Leave and rejoin leader election. -
getZookeeperConnectionState
String getZookeeperConnectionState()Get information about the elector's connection to Zookeeper.- Returns:
- zookeeper connection state
-