public static enum SimpleStrategyMBean.HAStatus extends Enum<SimpleStrategyMBean.HAStatus>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final SimpleStrategyMBean.HAStatus ORPHANED
public static final SimpleStrategyMBean.HAStatus ENDANGERED
public static final SimpleStrategyMBean.HAStatus NODE_SAFE
public static final SimpleStrategyMBean.HAStatus MACHINE_SAFE
public static final SimpleStrategyMBean.HAStatus RACK_SAFE
public static final SimpleStrategyMBean.HAStatus SITE_SAFE
public static SimpleStrategyMBean.HAStatus[] values()
for (SimpleStrategyMBean.HAStatus c : SimpleStrategyMBean.HAStatus.values()) System.out.println(c);
public static SimpleStrategyMBean.HAStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getCode()