|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GridSegmentationPolicy>
org.gridgain.grid.segmentation.GridSegmentationPolicy
public enum GridSegmentationPolicy
Policy that defines how node will react on topology segmentation.
| Wiki | |
| Forum |
GridSegmentationResolver

| Enum Constant Summary | |
|---|---|
NOOP
When segmentation policy is NOOP, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and it is up to user to
a 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 GridFactory.stop(boolean, boolean). |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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 GridCommandLineLoader
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 GridFactory.stop(boolean, 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 recommended when data grid is enabled.
public static final GridSegmentationPolicy NOOP
NOOP, all listeners will receive
GridEventType.EVT_NODE_SEGMENTED event and it is up to user to
a implement logic to handle this event.
This policy is intended to use when it is needed to perform user-defined logic on node stop and then start.
| Method Detail |
|---|
public static GridSegmentationPolicy[] values()
for (GridSegmentationPolicy c : GridSegmentationPolicy.values()) System.out.println(c);
public static GridSegmentationPolicy valueOf(String name)
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullname - the name of the enum constant to be returned.
|
GridGain 3.6.0e
Enterprise Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
|
GridGain - Real Time Big Data
|
|
|