Enum 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

    • Method Detail

      • values

        public static HighAvailabilityMode[] 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 (HighAvailabilityMode c : HighAvailabilityMode.values())
            System.out.println(c);
        
        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
      • isHighAvailabilityModeActivated

        public static boolean isHighAvailabilityModeActivated​(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