public class RdbmsHaStrategy extends AbstractHaStrategy implements RdbmsCoordinationListener
LOGGER| Constructor and Description |
|---|
RdbmsHaStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
becameCoordinatorNode()
Method to be invoked once the node becomes the coordinator node.
|
boolean |
isActiveNode()
Method to identify if the local node is the active node.
|
void |
lostCoordinatorState()
Method to be invoked once the node loses coordinator state.
|
void |
pause() |
void |
resume() |
void |
setup(org.wso2.broker.common.StartupContext startupContext)
Setup based on
StartupContext if required (eg:- read configs). |
void |
start()
Meant to be invoked when the HA strategy should start.
|
void |
stop()
Meant to be invoked when the HaStrategy should stop.
|
notifyBecameActiveNode, notifyBecamePassiveNode, registerListener, unregisterListenerpublic void setup(org.wso2.broker.common.StartupContext startupContext)
throws Exception
StartupContext if required (eg:- read configs).setup in interface HaStrategystartupContext - the startup context from which registered services can be retrievedExceptionpublic void start()
start in interface HaStrategypublic boolean isActiveNode()
isActiveNode in interface HaStrategypublic void stop()
stop in interface HaStrategystop in class AbstractHaStrategypublic void pause()
public void resume()
public void becameCoordinatorNode()
becameCoordinatorNode in interface RdbmsCoordinationListenerpublic void lostCoordinatorState()
lostCoordinatorState in interface RdbmsCoordinationListenerCopyright © 2018 WSO2. All rights reserved.