Enum Class ActionExecutionMode

java.lang.Object
java.lang.Enum<ActionExecutionMode>
org.elasticsearch.xpack.core.watcher.execution.ActionExecutionMode
All Implemented Interfaces:
Serializable, Comparable<ActionExecutionMode>, Constable

public enum ActionExecutionMode extends Enum<ActionExecutionMode>
  • Enum Constant Details

    • SIMULATE

      public static final ActionExecutionMode SIMULATE
      The action will be simulated (not actually executed) and it will be throttled if needed.
    • FORCE_SIMULATE

      public static final ActionExecutionMode FORCE_SIMULATE
      The action will be simulated (not actually executed) and it will not be throttled.
    • EXECUTE

      public static final ActionExecutionMode EXECUTE
      The action will be executed and it will be throttled if needed.
    • FORCE_EXECUTE

      public static final ActionExecutionMode FORCE_EXECUTE
      The action will be executed and it will not be throttled.
    • SKIP

      public static final ActionExecutionMode SKIP
      The action will be skipped (it won't be executed nor simulated) - effectively it will be forcefully throttled
  • Method Details

    • values

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

      public static ActionExecutionMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public final byte id()
    • simulate

      public final boolean simulate()
    • force

      public final boolean force()
    • resolve

      public static ActionExecutionMode resolve(byte id)
    • resolve

      public static ActionExecutionMode resolve(String key)