Enum JobAction

    • Enum Constant Detail

      • NONE

        public static final JobAction NONE
        Take no action.
      • DISABLE

        public static final JobAction DISABLE
        Disable the Job. This is equivalent to calling the disable Job API, with a disableTasks value of requeue.
      • TERMINATE

        public static final JobAction TERMINATE
        Terminate the Job. The terminateReason in the Job's executionInfo is set to "TaskFailed".
    • Method Detail

      • values

        public static JobAction[] 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 (JobAction c : JobAction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JobAction 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
      • fromString

        public static JobAction fromString​(String value)
        Parses a serialized value to a JobAction instance.
        Parameters:
        value - the serialized value to parse.
        Returns:
        the parsed JobAction object, or null if unable to parse.