public enum HighAvailabilityMode extends java.lang.Enum<HighAvailabilityMode>
Enum Constant and Description |
---|
AUTO
Means auto-detect whether to be master or standby; if there is already a master then start as standby,
otherwise start as master.
|
DISABLED
Means HA mode should not be operational.
|
HOT_BACKUP
Means node must be hot backup; do not attempt to become master (but it can start without a master).
|
HOT_STANDBY
Means node must be hot standby; if there is not already a master then fail fast on startup.
|
MASTER
Means node must be master; if there is already a master then fail fast on startup.
|
STANDBY
Means node must be lukewarm standby; if there is not already a master then fail fast on startup.
|
Modifier and Type | Method and Description |
---|---|
static HighAvailabilityMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HighAvailabilityMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HighAvailabilityMode DISABLED
When specified for the initial HA mode, this simply turns off HA.
However if being used to HighAvailabilityManager.changeMode(HighAvailabilityMode)
,
this will cause the node to transition to a ManagementNodeState.FAILED
state.
Switching to a "master-but-not-part-of-HA" state is not currently supported, as this would be
problematic if another node (which was part of HA) then tries to become master,
and the more common use of this at runtime is to disable a node from being part of the HA plane.
public static final HighAvailabilityMode AUTO
public static final HighAvailabilityMode STANDBY
ManagementNodeState.STANDBY
.public static final HighAvailabilityMode HOT_STANDBY
ManagementNodeState.HOT_STANDBY
.public static final HighAvailabilityMode HOT_BACKUP
ManagementNodeState.HOT_BACKUP
.public static final HighAvailabilityMode MASTER
ManagementNodeState.MASTER
.public static HighAvailabilityMode[] values()
for (HighAvailabilityMode c : HighAvailabilityMode.values()) System.out.println(c);
public static HighAvailabilityMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null