public static enum Partition.Properties.RemoteEnableAction extends java.lang.Enum<Partition.Properties.RemoteEnableAction>
When a remote node enables a partition, it will enable the partition on all nodes in the node list, and update the partition status and state. This is done even on nodes that have explicitly disabled the partition. This behaviour can be changed by setting the RemoteEnableAction to LEAVE_DISABLED. Note that this only controls the behaviour on the local node, it does not affect partitions defined on remote nodes.
The default action is defined by Partition.DefaultRemoteEnableAction
,
Enum Constant and Description |
---|
ENABLE_PARTITION
Allow remote nodes to enable the partition on the local node.
|
LEAVE_DISABLED
Do not allow remote nodes to enable the partition on the
local node if it has been explicitly disabled.
|
Modifier and Type | Method and Description |
---|---|
static Partition.Properties.RemoteEnableAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Partition.Properties.RemoteEnableAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Partition.Properties.RemoteEnableAction ENABLE_PARTITION
public static final Partition.Properties.RemoteEnableAction LEAVE_DISABLED
public static Partition.Properties.RemoteEnableAction[] values()
for (Partition.Properties.RemoteEnableAction c : Partition.Properties.RemoteEnableAction.values()) System.out.println(c);
public static Partition.Properties.RemoteEnableAction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null