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