public enum ShutdownPolicy extends Enum<ShutdownPolicy>
Enum Constant and Description |
---|
GRACEFUL
Node will stop if and only if it does not store any unique partitions, that don't have another copies in the cluster.
|
IMMEDIATE
Stop immediately as soon as all components are ready.
|
Modifier and Type | Method and Description |
---|---|
static ShutdownPolicy |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
ShutdownPolicy |
fromString(String val)
Return shutdown policy matching to string.
|
int |
index() |
static ShutdownPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShutdownPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShutdownPolicy IMMEDIATE
public static final ShutdownPolicy GRACEFUL
public static ShutdownPolicy[] values()
for (ShutdownPolicy c : ShutdownPolicy.values()) System.out.println(c);
public static ShutdownPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int index()
public static ShutdownPolicy fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.public ShutdownPolicy fromString(String val)
val
- String representation.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024