public enum GridSegmentationPolicy extends Enum<GridSegmentationPolicy>
GridConfiguration.DFLT_SEG_PLC property.GridSegmentationResolver| Enum Constant and Description |
|---|
NOOP
When segmentation policy is
NOOP, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and it is up to user to
implement logic to handle this event. |
RECONNECT
When segmentation policy is
RECONNECT, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED and then discovery manager will
try to reconnect discovery SPI to topology issuing
GridEventType.EVT_NODE_RECONNECTED event on reconnect. |
RESTART_JVM
When segmentation policy is
RESTART_JVM, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and then JVM will be restarted. |
STOP
When segmentation policy is
STOP, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and then particular grid node
will be stopped via call to GridGain.stop(String, boolean). |
| Modifier and Type | Method and Description |
|---|---|
static GridSegmentationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridSegmentationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridSegmentationPolicy RESTART_JVM
RESTART_JVM, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and then JVM will be restarted.
Note, that this will work only if GridGain is started with GridCommandLineStartup
via standard ggstart.{sh|bat} shell script.public static final GridSegmentationPolicy STOP
STOP, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and then particular grid node
will be stopped via call to GridGain.stop(String, boolean).public static final GridSegmentationPolicy RECONNECT
RECONNECT, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED and then discovery manager will
try to reconnect discovery SPI to topology issuing
GridEventType.EVT_NODE_RECONNECTED event on reconnect.
Note, that this policy is not allowed when in-memory data grid is enabled.
This policy can be used only with GridDiscoverySpi implementation that
has support for reconnect (i.e. annotated with GridDiscoverySpiReconnectSupport
annotation).
public static final GridSegmentationPolicy NOOP
NOOP, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and it is up to user to
implement logic to handle this event.public static GridSegmentationPolicy[] values()
for (GridSegmentationPolicy c : GridSegmentationPolicy.values()) System.out.println(c);
public static GridSegmentationPolicy 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 nullCopyright © 2014. All rights reserved.