public enum SegmentationPolicy extends Enum<SegmentationPolicy>
IgniteConfiguration.DFLT_SEG_PLC
property.SegmentationResolver
Enum Constant and Description |
---|
NOOP
When segmentation policy is
NOOP , all listeners will receive
EventType.EVT_NODE_SEGMENTED event and it is up to user to
implement logic to handle this event. |
RESTART_JVM
When segmentation policy is
RESTART_JVM , all listeners will receive
EventType.EVT_NODE_SEGMENTED event and then JVM will be restarted. |
STOP
When segmentation policy is
STOP , all listeners will receive
EventType.EVT_NODE_SEGMENTED event and then particular grid node
will be stopped via call to Ignition.stop(String, boolean) . |
Modifier and Type | Method and Description |
---|---|
static @Nullable SegmentationPolicy |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static SegmentationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SegmentationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SegmentationPolicy RESTART_JVM
RESTART_JVM
, all listeners will receive
EventType.EVT_NODE_SEGMENTED
event and then JVM will be restarted.
Note, that this will work only if Ignite is started with CommandLineStartup
via standard ignite.{sh|bat}
shell script.public static final SegmentationPolicy STOP
STOP
, all listeners will receive
EventType.EVT_NODE_SEGMENTED
event and then particular grid node
will be stopped via call to Ignition.stop(String, boolean)
.public static final SegmentationPolicy NOOP
NOOP
, all listeners will receive
EventType.EVT_NODE_SEGMENTED
event and it is up to user to
implement logic to handle this event.public static SegmentationPolicy[] values()
for (SegmentationPolicy c : SegmentationPolicy.values()) System.out.println(c);
public static SegmentationPolicy 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 @Nullable SegmentationPolicy fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024