public class StatsUpdaterTask extends Object implements LeaderElection.LeadershipStateListener
| Constructor and Description |
|---|
StatsUpdaterTask(org.apache.hadoop.conf.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
Optional<MetaStoreThread> |
getStatsUpdaterThread() |
void |
lossLeadership(LeaderElection election)
Invoked when lost the election
|
void |
takeLeadership(LeaderElection election)
Invoked when won the election.
|
public StatsUpdaterTask(org.apache.hadoop.conf.Configuration configuration)
public Optional<MetaStoreThread> getStatsUpdaterThread() throws Exception
Exceptionpublic void takeLeadership(LeaderElection election) throws Exception
LeaderElection.LeadershipStateListenertakeLeadership in interface LeaderElection.LeadershipStateListenerelection - the election where happens.Exceptionpublic void lossLeadership(LeaderElection election) throws Exception
LeaderElection.LeadershipStateListenerlossLeadership in interface LeaderElection.LeadershipStateListenerelection - the election where happens.ExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.