public class AuditLeaderListener extends Object implements LeaderElection.LeadershipStateListener
| Constructor and Description |
|---|
AuditLeaderListener(org.apache.hadoop.fs.Path tableLocation,
org.apache.hadoop.conf.Configuration configuration) |
AuditLeaderListener(TableName tableName,
IHMSHandler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
lossLeadership(LeaderElection election)
Invoked when lost the election
|
void |
takeLeadership(LeaderElection election)
Invoked when won the election.
|
public AuditLeaderListener(TableName tableName, IHMSHandler handler) throws Exception
Exceptionpublic AuditLeaderListener(org.apache.hadoop.fs.Path tableLocation,
org.apache.hadoop.conf.Configuration configuration)
public 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.