Enum MemberGroupStrategy

java.lang.Object
java.lang.Enum<MemberGroupStrategy>
io.atomix.primitive.partition.MemberGroupStrategy
All Implemented Interfaces:
MemberGroupProvider, Serializable, Comparable<MemberGroupStrategy>, java.lang.constant.Constable

public enum MemberGroupStrategy
extends Enum<MemberGroupStrategy>
implements MemberGroupProvider
Member group strategy.

Member group strategies are default implementations of MemberGroupProvider for built-in node attributes.

  • Enum Constant Details

    • ZONE_AWARE

      public static final MemberGroupStrategy ZONE_AWARE
      Zone aware member group strategy.

      This strategy will create a member group for each unique zone in the cluster.

    • RACK_AWARE

      public static final MemberGroupStrategy RACK_AWARE
      Rack aware member group strategy.

      This strategy will create a member group for each unique rack in the cluster.

    • HOST_AWARE

      public static final MemberGroupStrategy HOST_AWARE
      Host aware member group strategy.

      This strategy will create a member group for each unique host in the cluster.

    • NODE_AWARE

      public static final MemberGroupStrategy NODE_AWARE
      Node aware member group strategy (the default).

      This strategy will create a member group for each node in the cluster, effectively behaving the same as if no member groups were defined.

  • Method Details

    • values

      public static MemberGroupStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MemberGroupStrategy valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null