Enum Class FailurePolicy
- All Implemented Interfaces:
Serializable, Comparable<FailurePolicy>, Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe default.Record the failure and carry on with every step that does not depend on the failed one. -
Method Summary
Modifier and TypeMethodDescriptionstatic FailurePolicyReturns the enum constant of this class with the specified name.static FailurePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Record the failure and carry on with every step that does not depend on the failed one. Dependents of a failed step are reported asSKIPPEDwith the reason; nothing is rolled back, and the outcome reports the partial state so a later reconcile can finish it.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-