Package io.hekate.cluster.split
Enum SplitBrainDetectorGroup.GroupPolicy
- java.lang.Object
-
- java.lang.Enum<SplitBrainDetectorGroup.GroupPolicy>
-
- io.hekate.cluster.split.SplitBrainDetectorGroup.GroupPolicy
-
- All Implemented Interfaces:
Serializable
,Comparable<SplitBrainDetectorGroup.GroupPolicy>
- Enclosing class:
- SplitBrainDetectorGroup
public static enum SplitBrainDetectorGroup.GroupPolicy extends Enum<SplitBrainDetectorGroup.GroupPolicy>
Group policy forSplitBrainDetectorGroup
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_VALID
If at least one ofdetectors
reported failure then the whole group check is considered to be failed.ANY_VALID
If at least one ofdetectors
reported success then the whole group check is considered to be successful.MAJORITY_VALID
If the majority ofdetectors
reported success then the whole group check is considered to be successful.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SplitBrainDetectorGroup.GroupPolicy
valueOf(String name)
Returns the enum constant of this type with the specified name.static SplitBrainDetectorGroup.GroupPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY_VALID
public static final SplitBrainDetectorGroup.GroupPolicy ANY_VALID
If at least one ofdetectors
reported success then the whole group check is considered to be successful.
-
ALL_VALID
public static final SplitBrainDetectorGroup.GroupPolicy ALL_VALID
If at least one ofdetectors
reported failure then the whole group check is considered to be failed.
-
MAJORITY_VALID
public static final SplitBrainDetectorGroup.GroupPolicy MAJORITY_VALID
If the majority ofdetectors
reported success then the whole group check is considered to be successful.
-
-
Method Detail
-
values
public static SplitBrainDetectorGroup.GroupPolicy[] 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 (SplitBrainDetectorGroup.GroupPolicy c : SplitBrainDetectorGroup.GroupPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SplitBrainDetectorGroup.GroupPolicy 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
-
-