public enum GridGainState extends Enum<GridGainState>
GridGain. You can register a listener for
state change notifications via GridGain.addListener(GridGainListener)
method.| Enum Constant and Description |
|---|
STARTED
Grid factory started.
|
STOPPED
Grid factory stopped.
|
STOPPED_ON_SEGMENTATION
Grid factory stopped due to network segmentation issues.
|
| Modifier and Type | Method and Description |
|---|---|
static GridGainState |
fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.
|
static GridGainState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridGainState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridGainState STARTED
public static final GridGainState STOPPED
public static final GridGainState STOPPED_ON_SEGMENTATION
Notification on this state will be fired only when segmentation policy is
set to GridSegmentationPolicy.STOP or GridSegmentationPolicy.RESTART_JVM
and node is stopped from internals of GridGain after segment becomes invalid.
public static GridGainState[] values()
for (GridGainState c : GridGainState.values()) System.out.println(c);
public static GridGainState 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 null@Nullable public static GridGainState fromOrdinal(byte ord)
ord - Ordinal value.Copyright © 2014. All rights reserved.