Record Class ScaleActivity.ActiveComputationRecommendation
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.ScaleActivity.ActiveComputationRecommendation
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ScaleActivity
public static record ScaleActivity.ActiveComputationRecommendation(int nodes, int threads, double rate1m, int eta, boolean relevant)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActiveComputationRecommendation(int nodes, int threads, double rate1m, int eta, boolean relevant) Creates an instance of aActiveComputationRecommendationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.inteta()Returns the value of theetarecord component.final inthashCode()Returns a hash code value for this object.intnodes()Returns the value of thenodesrecord component.doublerate1m()Returns the value of therate1mrecord component.booleanrelevant()Returns the value of therelevantrecord component.intthreads()Returns the value of thethreadsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActiveComputationRecommendation
public ActiveComputationRecommendation(int nodes, int threads, double rate1m, int eta, boolean relevant) Creates an instance of aActiveComputationRecommendationrecord class.- Parameters:
nodes- the value for thenodesrecord componentthreads- the value for thethreadsrecord componentrate1m- the value for therate1mrecord componenteta- the value for theetarecord componentrelevant- the value for therelevantrecord 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. All components in this record class are compared with '=='. -
nodes
public int nodes()Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
threads
public int threads()Returns the value of thethreadsrecord component.- Returns:
- the value of the
threadsrecord component
-
rate1m
public double rate1m()Returns the value of therate1mrecord component.- Returns:
- the value of the
rate1mrecord component
-
eta
public int eta()Returns the value of theetarecord component.- Returns:
- the value of the
etarecord component
-
relevant
public boolean relevant()Returns the value of therelevantrecord component.- Returns:
- the value of the
relevantrecord component
-