public enum ManagementNodeState extends java.lang.Enum<ManagementNodeState>
Enum Constant and Description |
---|
FAILED
Node has failed and requires maintenance attention
|
HOT_BACKUP
Node is acting as a read-only proxy but not making itself available for promotion to master
|
HOT_STANDBY
Node is acting as read-only proxy available to be promoted to master on existing master failure
|
INITIALIZING
Node is either coming online, or is in some kind of recovery/transitioning mode
|
MASTER
Node is running as primary/master, able to manage entities and create new ones
|
STANDBY
Node is in "lukewarm standby" mode, where it is available to be promoted to master,
but does not have entities loaded and will require some effort to be promoted
|
TERMINATED
Node has gone away; maintenance not possible
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isHotProxy(ManagementNodeState state)
true for hot non-master modes, where we are proxying the data from the persistent store
|
static boolean |
isStandby(ManagementNodeState state)
true for non-master modes which can be promoted to master
|
static Maybe<ManagementNodeState> |
of(HighAvailabilityMode startMode)
Converts a
HighAvailabilityMode to a ManagementNodeState , if possible |
static ManagementNodeState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ManagementNodeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ManagementNodeState INITIALIZING
public static final ManagementNodeState STANDBY
public static final ManagementNodeState HOT_STANDBY
public static final ManagementNodeState HOT_BACKUP
public static final ManagementNodeState MASTER
public static final ManagementNodeState FAILED
public static final ManagementNodeState TERMINATED
public static ManagementNodeState[] values()
for (ManagementNodeState c : ManagementNodeState.values()) System.out.println(c);
public static ManagementNodeState 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 nullpublic static Maybe<ManagementNodeState> of(HighAvailabilityMode startMode)
HighAvailabilityMode
to a ManagementNodeState
, if possiblepublic static boolean isHotProxy(ManagementNodeState state)
public static boolean isStandby(ManagementNodeState state)