Package org.apache.bookkeeper.client
Enum EnsemblePlacementPolicy.PlacementPolicyAdherence
- java.lang.Object
-
- java.lang.Enum<EnsemblePlacementPolicy.PlacementPolicyAdherence>
-
- org.apache.bookkeeper.client.EnsemblePlacementPolicy.PlacementPolicyAdherence
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EnsemblePlacementPolicy.PlacementPolicyAdherence>
- Enclosing interface:
- EnsemblePlacementPolicy
public static enum EnsemblePlacementPolicy.PlacementPolicyAdherence extends java.lang.Enum<EnsemblePlacementPolicy.PlacementPolicyAdherence>
enum for PlacementPolicyAdherence. Currently we are supporting tri-value enum for PlacementPolicyAdherence. If placement policy is met strictly then it is MEETS_STRICT, if it doesn't adhere to placement policy then it is FAIL. But there are certain placement policies, like ZoneAwareEnsemblePlacementPolicy which has definition of soft adherence level to support zone down scenarios.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAIL
MEETS_SOFT
MEETS_STRICT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumVal()
static EnsemblePlacementPolicy.PlacementPolicyAdherence
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnsemblePlacementPolicy.PlacementPolicyAdherence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL
public static final EnsemblePlacementPolicy.PlacementPolicyAdherence FAIL
-
MEETS_SOFT
public static final EnsemblePlacementPolicy.PlacementPolicyAdherence MEETS_SOFT
-
MEETS_STRICT
public static final EnsemblePlacementPolicy.PlacementPolicyAdherence MEETS_STRICT
-
-
Method Detail
-
values
public static EnsemblePlacementPolicy.PlacementPolicyAdherence[] 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 (EnsemblePlacementPolicy.PlacementPolicyAdherence c : EnsemblePlacementPolicy.PlacementPolicyAdherence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnsemblePlacementPolicy.PlacementPolicyAdherence valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getNumVal
public int getNumVal()
-
-