public static interface ActiveStandbyElector.ActiveStandbyElectorCallback
| Modifier and Type | Method and Description | 
|---|---|
void | 
becomeActive()
This method is called when the app becomes the active leader. 
 | 
void | 
becomeStandby()
This method is called when the app becomes a standby 
 | 
void | 
enterNeutralMode()
If the elector gets disconnected from Zookeeper and does not know about
 the lock state, then it will notify the service via the enterNeutralMode
 interface. 
 | 
void | 
fenceOldActive(byte[] oldActiveData)
If an old active has failed, rather than exited gracefully, then
 the new active may need to take some fencing actions against it
 before proceeding with failover. 
 | 
void | 
notifyFatalError(String errorMessage)
If there is any fatal error (e.g. 
 | 
void becomeActive()
                  throws ServiceFailedException
ServiceFailedExceptionvoid becomeStandby()
void enterNeutralMode()
void notifyFatalError(String errorMessage)
void fenceOldActive(byte[] oldActiveData)
oldActiveData - the application data provided by the prior activeCopyright © 2018 Apache Software Foundation. All Rights Reserved.