public abstract class AbstractHaStrategy extends Object implements HaStrategy
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER
Class logger.
|
| Constructor and Description |
|---|
AbstractHaStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
notifyBecameActiveNode()
Method to notify becoming the active node to all listeners.
|
protected void |
notifyBecamePassiveNode()
Method to notify becoming the passive node to all listeners.
|
void |
registerListener(HaListener haListener,
int priority)
Method to register a listener to listen on notifications for node state changes with priority level.
|
void |
stop()
Meant to be invoked when the HaStrategy should stop.
|
void |
unregisterListener(HaListener haListener)
Method to unregister a listener registered to listen on notifications for node state changes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisActiveNode, setup, startpublic void registerListener(HaListener haListener, int priority)
registerListener in interface HaStrategyhaListener - the HaListener to registerpriority - the priority level when notifying node state changes to the haListenerpublic void unregisterListener(HaListener haListener)
unregisterListener in interface HaStrategyhaListener - the HaListener to unregisterprotected void notifyBecameActiveNode()
protected void notifyBecamePassiveNode()
public void stop()
stop in interface HaStrategyCopyright © 2018 WSO2. All rights reserved.