Package com.hazelcast.spi.partitiongroup
Enum 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 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
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static String
PARTITION_GROUP_HOST
Metadata key definition for a low-latency link on a shared physical node, in case of virtualization being usedstatic String
PARTITION_GROUP_RACK
Metadata key definition for a low-latency link inside the same data center but for different racksstatic String
PARTITION_GROUP_ZONE
Metadata key definition for a low-latency link between (virtual) data centers in the same area -
Method Summary
Modifier and Type Method 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.
-
Field Details
-
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
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
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 Details
-
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
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 nameNullPointerException
- if the argument is null
-