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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenodeSlicerecord component.static UpgradePolicy.StepCreate 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 StringtoString()Returns a string representation of this record class.zones()Returns the value of thezonesrecord component.
-
Constructor Details
-
Step
Creates an instance of aSteprecord class.- Parameters:
zones- the value for thezonesrecord componentnodeSlice- the value for thenodeSlicerecord 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 thezonesrecord component.- Returns:
- the value of the
zonesrecord component
-
nodeSlice
Returns the value of thenodeSlicerecord component.- Returns:
- the value of the
nodeSlicerecord component
-