public static class LeaderElectionContext.ContextBuilder extends Object
| Constructor and Description |
|---|
ContextBuilder(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
LeaderElectionContext.ContextBuilder |
addListener(LeaderElection.LeadershipStateListener listener) |
LeaderElectionContext.ContextBuilder |
addListener(LeaderElection.LeadershipStateListener listener,
boolean condition) |
LeaderElectionContext |
build() |
LeaderElectionContext.ContextBuilder |
servHost(String hostName) |
LeaderElectionContext.ContextBuilder |
setHMSHandler(IHMSHandler handler) |
LeaderElectionContext.ContextBuilder |
setTType(LeaderElectionContext.TTYPE type) |
LeaderElectionContext.ContextBuilder |
startAsDaemon(boolean daemon) |
public LeaderElectionContext.ContextBuilder servHost(String hostName)
public LeaderElectionContext.ContextBuilder setHMSHandler(IHMSHandler handler)
public LeaderElectionContext.ContextBuilder setTType(LeaderElectionContext.TTYPE type)
public LeaderElectionContext.ContextBuilder addListener(LeaderElection.LeadershipStateListener listener)
public LeaderElectionContext.ContextBuilder addListener(LeaderElection.LeadershipStateListener listener, boolean condition)
public LeaderElectionContext.ContextBuilder startAsDaemon(boolean daemon)
public LeaderElectionContext build() throws Exception
ExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.