public class HouseKeepingTasks extends Object implements LeaderElection.LeadershipStateListener
| Constructor and Description |
|---|
HouseKeepingTasks(org.apache.hadoop.conf.Configuration configuration,
boolean runOnlyRemoteTasks) |
| Modifier and Type | Method and Description |
|---|---|
List<MetastoreTaskThread> |
getAlwaysTasks() |
List<MetastoreTaskThread> |
getRemoteOnlyTasks()
invoke setConf(Configuration conf) before running
|
void |
lossLeadership(LeaderElection election)
Invoked when lost the election
|
void |
takeLeadership(LeaderElection election)
Invoked when won the election.
|
public HouseKeepingTasks(org.apache.hadoop.conf.Configuration configuration,
boolean runOnlyRemoteTasks)
public List<MetastoreTaskThread> getRemoteOnlyTasks() throws Exception
Exceptionpublic List<MetastoreTaskThread> getAlwaysTasks() 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.