Record Class FailureScenario
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.FailureScenario
- Record Components:
id- stable id (for examplemetro:DC,conn:aws@NY,pair:metro:DC+conn:aws@NY)kind- what failsdescription- readable descriptionfailedNodes- node ids taken away (every edge touching them fails too)failedEdges- edge ids taken awaycomponents- for aScenarioKind.PAIR, the ids of the two single scenarios; empty otherwise
-
Constructor Summary
ConstructorsConstructorDescriptionFailureScenario(String id, ScenarioKind kind, String description, List<String> failedNodes, List<String> failedEdges, List<String> components) Makes the lists immutable and non-null. -
Method Summary
Modifier and TypeMethodDescriptionstatic FailureScenariobaseline()Returns the value of thecomponentsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedEdgesrecord component.Returns the value of thefailedNodesrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FailureScenario
-
-
Method Details
-
baseline
- Returns:
- the scenario in which nothing fails
-
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). -
id
-
kind
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
failedNodes
Returns the value of thefailedNodesrecord component.- Returns:
- the value of the
failedNodesrecord component
-
failedEdges
Returns the value of thefailedEdgesrecord component.- Returns:
- the value of the
failedEdgesrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-