Enum MiniCluster.HaServices
- java.lang.Object
-
- java.lang.Enum<MiniCluster.HaServices>
-
- org.apache.flink.runtime.minicluster.MiniCluster.HaServices
-
- All Implemented Interfaces:
Serializable
,Comparable<MiniCluster.HaServices>
- Enclosing class:
- MiniCluster
public static enum MiniCluster.HaServices extends Enum<MiniCluster.HaServices>
HA Services to use.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURED
Uses the configured HA Services inHighAvailabilityOptions.HA_MODE
option.WITH_LEADERSHIP_CONTROL
Enables or disablesHaLeadershipControl
inMiniCluster.getHaLeadershipControl()
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MiniCluster.HaServices
valueOf(String name)
Returns the enum constant of this type with the specified name.static MiniCluster.HaServices[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONFIGURED
public static final MiniCluster.HaServices CONFIGURED
Uses the configured HA Services inHighAvailabilityOptions.HA_MODE
option.
-
WITH_LEADERSHIP_CONTROL
public static final MiniCluster.HaServices WITH_LEADERSHIP_CONTROL
Enables or disablesHaLeadershipControl
inMiniCluster.getHaLeadershipControl()
.HaLeadershipControl
allows granting and revoking leadership of HA components. Enabling this feature disablesHighAvailabilityOptions.HA_MODE
option.
-
-
Method Detail
-
values
public static MiniCluster.HaServices[] 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 (MiniCluster.HaServices c : MiniCluster.HaServices.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MiniCluster.HaServices 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
-
-