public enum MemberGroupStrategy extends Enum<MemberGroupStrategy> implements MemberGroupProvider
Member group strategies are default implementations of MemberGroupProvider for built-in node attributes.
| Enum Constant and Description |
|---|
HOST_AWARE
Host aware member group strategy.
|
NODE_AWARE
Node aware member group strategy (the default).
|
RACK_AWARE
Rack aware member group strategy.
|
ZONE_AWARE
Zone aware member group strategy.
|
| Modifier and Type | Method and Description |
|---|---|
static MemberGroupStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemberGroupStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetMemberGroupspublic static final MemberGroupStrategy ZONE_AWARE
This strategy will create a member group for each unique zone in the cluster.
public static final MemberGroupStrategy RACK_AWARE
This strategy will create a member group for each unique rack in the cluster.
public static final MemberGroupStrategy HOST_AWARE
This strategy will create a member group for each unique host in the cluster.
public static final MemberGroupStrategy NODE_AWARE
This strategy will create a member group for each node in the cluster, effectively behaving the same as if no member groups were defined.
public static MemberGroupStrategy[] values()
for (MemberGroupStrategy c : MemberGroupStrategy.values()) System.out.println(c);
public static MemberGroupStrategy 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 © 2013–2018. All rights reserved.