Package com.tangosol.net.partition
Enum SimpleStrategyMBean.HAStatus
- java.lang.Object
-
- java.lang.Enum<SimpleStrategyMBean.HAStatus>
-
- com.tangosol.net.partition.SimpleStrategyMBean.HAStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<SimpleStrategyMBean.HAStatus>
- Enclosing interface:
- SimpleStrategyMBean
public static enum SimpleStrategyMBean.HAStatus extends Enum<SimpleStrategyMBean.HAStatus>
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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENDANGERED
Loss of a cluster node that runs a PartitionedService may cause data loss.MACHINE_SAFE
The cluster nodes running on a machine can be stopped simultaneously without any data loss.NODE_SAFE
Any cluster member could be stopped without data loss.ORPHANED
A partition is orphaned when there are no storage-enabled member of the service that holds a primary copy of that partition.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Return the integer representation of the HAStatus.static SimpleStrategyMBean.HAStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static SimpleStrategyMBean.HAStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ORPHANED
public static final SimpleStrategyMBean.HAStatus 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
public static final SimpleStrategyMBean.HAStatus ENDANGERED
Loss of a cluster node that runs a PartitionedService may cause data loss.
-
NODE_SAFE
public static final SimpleStrategyMBean.HAStatus NODE_SAFE
Any cluster member could be stopped without data loss.
-
MACHINE_SAFE
public static final SimpleStrategyMBean.HAStatus MACHINE_SAFE
The cluster nodes running on a machine can be stopped simultaneously without any data loss.
-
RACK_SAFE
public static final SimpleStrategyMBean.HAStatus RACK_SAFE
The cluster nodes running on a rack can be stopped simultaneously without any data loss.
-
SITE_SAFE
public static final SimpleStrategyMBean.HAStatus SITE_SAFE
The cluster nodes running at a site can be stopped simultaneously without any data loss.
-
-
Method Detail
-
values
public static SimpleStrategyMBean.HAStatus[] 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 (SimpleStrategyMBean.HAStatus c : SimpleStrategyMBean.HAStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleStrategyMBean.HAStatus 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 nameNullPointerException
- if the argument is null
-
getCode
public int getCode()
Return the integer representation of the HAStatus.- Returns:
- an integer representation of the HAStatus
-
-