public class HaStatus extends Object
Constructor and Description |
---|
HaStatus(HaStateType state,
ConfHaNode[] nodes) |
Modifier and Type | Method and Description |
---|---|
HaStateType |
getHaState()
Get the HA node state - MASTER/SLAVE/SLAVE_RELAY/NONE
|
ConfHaNode[] |
getNodes()
Get the array of slaves for a MASTER HA node, the MASTER node for a
SLAVE HA node, or the MASTER and the "sub-slaves" for a SLAVE_RELAY
HA node.
|
public HaStatus(HaStateType state, ConfHaNode[] nodes)
public HaStateType getHaState()
public ConfHaNode[] getNodes()