Record Class RollbackReport
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.plan.RollbackReport
- Record Components:
removed- resources deleted and confirmed gone, in deletion orderorphans- resources that still exist or whose deletion is unconfirmed, each with its uuid and reason
public record RollbackReport(List<RemovedResource> removed, List<OrphanedResource> orphans)
extends Record
What a rollback removed and what it had to leave behind.
Connections are deleted first and each delete is polled to DEPROVISIONED (or HTTP 404)
within a bounded timeout; a Cloud Router is deleted only after every connection attached to it is
confirmed gone. A connection whose delete fails or is not confirmed in time is an orphan, and so is
the router it attaches to (deleting it would fail or strand the connection), and so are its routing
protocols.
-
Constructor Summary
ConstructorsConstructorDescriptionRollbackReport(List<RemovedResource> removed, List<OrphanedResource> orphans) Makes both lists immutable and non-null. -
Method Summary
Modifier and TypeMethodDescriptionstatic RollbackReportempty()An empty report: nothing to roll back.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisClean()Whether everything was removed.orphans()Returns the value of theorphansrecord component.removed()Returns the value of theremovedrecord component.A readable report listing every removed resource and every orphan with its uuid.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RollbackReport
Makes both lists immutable and non-null.
-
-
Method Details
-
empty
An empty report: nothing to roll back.- Returns:
- a report with no entries
-
isClean
public boolean isClean()Whether everything was removed.- Returns:
truewhen there is no orphan
-
toMarkdown
A readable report listing every removed resource and every orphan with its uuid.- Returns:
- Markdown
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
removed
-
orphans
-