Enum HighAvailabilityMode

java.lang.Object
java.lang.Enum<HighAvailabilityMode>
org.apache.flink.runtime.jobmanager.HighAvailabilityMode
All Implemented Interfaces:
Serializable, Comparable<HighAvailabilityMode>

public enum HighAvailabilityMode extends Enum<HighAvailabilityMode>
High availability mode for Flink's cluster execution. Currently supported modes are:

- NONE: No high availability. - ZooKeeper: JobManager high availability via ZooKeeper ZooKeeper is used to select a leader among a group of JobManager. This JobManager is responsible for the job execution. Upon failure of the leader a new leader is elected which will take over the responsibilities of the old leader - FACTORY_CLASS: Use implementation of HighAvailabilityServicesFactory specified in configuration property high-availability

  • Enum Constant Details

  • Method Details

    • values

      public static HighAvailabilityMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HighAvailabilityMode 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 name
      NullPointerException - if the argument is null
    • fromConfig

      public static HighAvailabilityMode fromConfig(org.apache.flink.configuration.Configuration config)
      Return the configured HighAvailabilityMode.
      Parameters:
      config - The config to parse
      Returns:
      Configured recovery mode or NONE if not configured.
    • isHighAvailabilityModeActivated

      public static boolean isHighAvailabilityModeActivated(org.apache.flink.configuration.Configuration configuration)
      Returns true if the defined recovery mode supports high availability.
      Parameters:
      configuration - Configuration which contains the recovery mode
      Returns:
      true if high availability is supported by the recovery mode, otherwise false