@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, waitForServiceToStopprotected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void becomeActive()
throws org.apache.hadoop.ha.ServiceFailedException
becomeActive in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallbackorg.apache.hadoop.ha.ServiceFailedExceptionpublic void becomeStandby()
becomeStandby in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallbackpublic void enterNeutralMode()
enterNeutralMode in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallbackpublic void notifyFatalError(String errorMessage)
notifyFatalError in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallbackpublic void fenceOldActive(byte[] oldActiveData)
fenceOldActive in interface org.apache.hadoop.ha.ActiveStandbyElector.ActiveStandbyElectorCallbackpublic void resetLeaderElection()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.