com.hazelcast.spi.partitiongroup

## Enum PartitionGroupMetaData

- java.lang.Object
- - java.lang.Enum<PartitionGroupMetaData>
  - - com.hazelcast.spi.partitiongroup.PartitionGroupMetaData

- All Implemented Interfaces:
    Serializable, Comparable<PartitionGroupMetaData>

      public enum PartitionGroupMetaData
      extends Enum<PartitionGroupMetaData>

  This class contains the definition of known Discovery SPI metadata to support automatic generation of zone aware backup strategies 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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `PARTITION_GROUP_HOST` Metadata key definition for a low-latency link on a shared physical node, in case of virtualization being used
    `static String` | `PARTITION_GROUP_RACK` Metadata key definition for a low-latency link inside the same data center but for different racks
    `static String` | `PARTITION_GROUP_ZONE` Metadata key definition for a low-latency link between (virtual) data centers in the same area

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static PartitionGroupMetaData` | `valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static PartitionGroupMetaData[]` | `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`

- - ### Field Detail

    - #### 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

          public static final String PARTITION_GROUP_RACK

      Metadata key definition for a low-latency link inside the same data center but for different racks
      See Also:
        Constant Field Values

    - #### PARTITION_GROUP_HOST

          public static final String PARTITION_GROUP_HOST

      Metadata key definition for a low-latency link on a shared physical node, in case of virtualization being used
      See Also:
        Constant Field Values

  - ### Method Detail

    - #### values

          public static PartitionGroupMetaData[] values()

      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

          for (PartitionGroupMetaData c : PartitionGroupMetaData.values())
              System.out.println(c);

      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

Copyright © 2019. All rights reserved.