Enum Class FailurePolicy

java.lang.Object
java.lang.Enum<FailurePolicy>
com.eqixiac.equinix.design.plan.FailurePolicy
All Implemented Interfaces:
Serializable, Comparable<FailurePolicy>, Constable

public enum FailurePolicy extends Enum<FailurePolicy>
What execution does when a create step fails: a Cloud Router, connection or routing-protocol create that is rejected, a pre-flight dry-run that is rejected (HTTP 4xx validation), or a resource that lands in a terminal failure state or does not reach PROVISIONED within the timeout. The same policy applies to every step kind; nothing is silently skipped.
  • Enum Constant Details

    • ABORT_AND_ROLLBACK

      public static final FailurePolicy ABORT_AND_ROLLBACK
      The default. Stop at the first failed step and delete everything this run created, newest first, waiting for each connection delete to finish before deleting the Cloud Router it attaches to. Whatever cannot be deleted is reported as an orphan with its uuid. Resources that existed before the run (adopted or recorded in a checkpoint) are never deleted.
    • CONTINUE_ON_ERROR

      public static final FailurePolicy CONTINUE_ON_ERROR
      Record the failure and carry on with every step that does not depend on the failed one. Dependents of a failed step are reported as SKIPPED with the reason; nothing is rolled back, and the outcome reports the partial state so a later reconcile can finish it.
  • Method Details

    • values

      public static FailurePolicy[] 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 FailurePolicy 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