Enum PartitionGroupMetaData

java.lang.Object
java.lang.Enum<PartitionGroupMetaData>
com.hazelcast.spi.partitiongroup.PartitionGroupMetaData
All Implemented Interfaces:
Serializable, Comparable<PartitionGroupMetaData>, java.lang.constant.Constable

public enum PartitionGroupMetaData
extends Enum<PartitionGroupMetaData>
This class contains the definition of known Discovery SPI metadata to support automatic generation of zone aware and node aware backup strategies. Zone aware backup strategies are based on cloud or service discovery provided information. These information are split into three different levels of granularity:
  • Zone: A low-latency link between (virtual) data centers in the same area
  • Rack: A low-latency link inside the same data center but for different racks
  • Host: A low-latency link on a shared physical node, in case of virtualization being used
Node aware backup strategy is based on name of the node which is provided by container orchestration tool. like Kubernetes, Docker Swarm and ECS. A node is the term used to refer machine that containers/pods run on. A node may be a virtual or physical machine. Placement aware backup strategy is based on the placement strategies of the virtual machines on which Hazelcast members run. Unlike zone aware, this strategy can group members within a single availability zone based on their racks, power sources, network, etc.
  • Field Details

    • PARTITION_GROUP_ZONE

      public static final String PARTITION_GROUP_ZONE
      Metadata key definition for a low-latency link between (virtual) data centers in the same area
      See Also:
      Constant Field Values
    • PARTITION_GROUP_RACK

      @Deprecated public static final String PARTITION_GROUP_RACK
      Deprecated.
      Metadata key definition for a low-latency link inside the same data center but for different racks. This field is maintained for backward compatibility.Its use is discouraged and will be removed in a future version.
      See Also:
      Constant Field Values
    • PARTITION_GROUP_HOST

      @Deprecated public static final String PARTITION_GROUP_HOST
      Deprecated.
      Metadata key definition for a low-latency link on a shared physical node, in case of virtualization being used. This field is maintained for backward compatibility.Its use is discouraged and will be removed in a future version.
      See Also:
      Constant Field Values
    • PARTITION_GROUP_NODE

      public static final String PARTITION_GROUP_NODE
      Metadata key definition for a node machine that containers/pods run on, in case of container orchestration tools being used.
      See Also:
      Constant Field Values
    • PARTITION_GROUP_PLACEMENT

      public static final String PARTITION_GROUP_PLACEMENT
      Metadata key definition for the placement group to which VMs belong if a placement strategy is applied by cloud providers.
      See Also:
      Constant Field Values
  • Method Details

    • values

      public static PartitionGroupMetaData[] 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 PartitionGroupMetaData 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