Package com.yahoo.config.provision
Record Class CapacityPolicies.Tuning
java.lang.Object
java.lang.Record
com.yahoo.config.provision.CapacityPolicies.Tuning
- Enclosing class:
- CapacityPolicies
public static record CapacityPolicies.Tuning(NodeResources.Architecture adminClusterArchitecture, double logserverMemoryGiB, double clusterControllerMemoryGiB)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTuning(NodeResources.Architecture adminClusterArchitecture, double logserverMemoryGiB) Tuning(NodeResources.Architecture adminClusterArchitecture, double logserverMemoryGiB, double clusterControllerMemoryGiB) Creates an instance of aTuningrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadminClusterArchitecturerecord component.doubleReturns the value of theclusterControllerMemoryGiBrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelogserverMemoryGiBrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tuning
-
Tuning
public Tuning(NodeResources.Architecture adminClusterArchitecture, double logserverMemoryGiB, double clusterControllerMemoryGiB) Creates an instance of aTuningrecord class.- Parameters:
adminClusterArchitecture- the value for theadminClusterArchitecturerecord componentlogserverMemoryGiB- the value for thelogserverMemoryGiBrecord componentclusterControllerMemoryGiB- the value for theclusterControllerMemoryGiBrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
adminClusterArchitecture
Returns the value of theadminClusterArchitecturerecord component.- Returns:
- the value of the
adminClusterArchitecturerecord component
-
logserverMemoryGiB
public double logserverMemoryGiB()Returns the value of thelogserverMemoryGiBrecord component.- Returns:
- the value of the
logserverMemoryGiBrecord component
-
clusterControllerMemoryGiB
public double clusterControllerMemoryGiB()Returns the value of theclusterControllerMemoryGiBrecord component.- Returns:
- the value of the
clusterControllerMemoryGiBrecord component
-