@InterfaceAudience.Private
@InterfaceStability.Unstable
public class EmbeddedElectorService
extends org.apache.hadoop.service.AbstractService
implements org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback
Modifier and Type | Method and Description |
---|---|
void |
becomeActive() |
void |
becomeStandby() |
void |
enterNeutralMode() |
void |
fenceOldActive(byte[] oldActiveData) |
void |
notifyFatalError(String errorMessage) |
void |
resetLeaderElection() |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop
protected void serviceInit(org.apache.hadoop.conf.Configuration conf) throws Exception
serviceInit
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.AbstractService
Exception
protected void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.AbstractService
Exception
public void becomeActive() throws org.apache.hadoop.ha.ServiceFailedException
becomeActive
in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback
org.apache.hadoop.ha.ServiceFailedException
public void becomeStandby()
becomeStandby
in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback
public void enterNeutralMode()
enterNeutralMode
in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback
public void notifyFatalError(String errorMessage)
notifyFatalError
in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback
public void fenceOldActive(byte[] oldActiveData)
fenceOldActive
in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallback
public void resetLeaderElection()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.