Package com.tangosol.net.partition
Enum Class SimpleStrategyMBean.HAStatus
java.lang.Object
java.lang.Enum<SimpleStrategyMBean.HAStatus>
com.tangosol.net.partition.SimpleStrategyMBean.HAStatus
- All Implemented Interfaces:
Serializable
,Comparable<SimpleStrategyMBean.HAStatus>
,Constable
- Enclosing interface:
SimpleStrategyMBean
HAStatus represents the possible values to represent the High Availability Status of the
associated PartitionedService. This status represents the strength (and therefore safety)
of the weakest partition for the associated PartitionedService.
- Since:
- 12.2.1.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLoss of a cluster node that runs a PartitionedService may cause data loss.The cluster nodes running on a machine can be stopped simultaneously without any data loss.Any cluster member could be stopped without data loss.A partition is orphaned when there are no storage-enabled member of the service that holds a primary copy of that partition.The cluster nodes running on a rack can be stopped simultaneously without any data loss.The cluster nodes running at a site can be stopped simultaneously without any data loss. -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Return the integer representation of the HAStatus.static SimpleStrategyMBean.HAStatus
Returns the enum constant of this class with the specified name.static SimpleStrategyMBean.HAStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORPHANED
A partition is orphaned when there are no storage-enabled member of the service that holds a primary copy of that partition. A PartitionedService that has one or more orphaned partitions is in an orphaned HA state. -
ENDANGERED
Loss of a cluster node that runs a PartitionedService may cause data loss. -
NODE_SAFE
Any cluster member could be stopped without data loss. -
MACHINE_SAFE
The cluster nodes running on a machine can be stopped simultaneously without any data loss. -
RACK_SAFE
The cluster nodes running on a rack can be stopped simultaneously without any data loss. -
SITE_SAFE
The cluster nodes running at a site can be stopped simultaneously without any data loss.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()Return the integer representation of the HAStatus.- Returns:
- an integer representation of the HAStatus
-