Package com.yahoo.config.provision.zone
Record Class UpgradePolicy.Step
java.lang.Object
java.lang.Record
com.yahoo.config.provision.zone.UpgradePolicy.Step
- Enclosing class:
- UpgradePolicy
An upgrade step, consisting of one or more zones. If a step contains multiple zones, those will be upgraded in
parallel.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenodeSlice
record component.static UpgradePolicy.Step
Create a step for given zones, which requires all nodes to complete upgradeReturns a copy of this step, requiring only the given slice of nodes for each zone in this step to upgradefinal String
toString()
Returns a string representation of this record class.zones()
Returns the value of thezones
record component.
-
Constructor Details
-
Step
Creates an instance of aStep
record class.- Parameters:
zones
- the value for thezones
record componentnodeSlice
- the value for thenodeSlice
record component
-
-
Method Details
-
of
Create a step for given zones, which requires all nodes to complete upgrade -
require
Returns a copy of this step, requiring only the given slice of nodes for each zone in this step to upgrade -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
zones
Returns the value of thezones
record component.- Returns:
- the value of the
zones
record component
-
nodeSlice
Returns the value of thenodeSlice
record component.- Returns:
- the value of the
nodeSlice
record component
-