Record Class ScaleActivity
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.ScaleActivity
- All Implemented Interfaces:
Serializable
public record ScaleActivity(ScaleActivity.Scale scale, List<ScaleActivity.ClusterNode> nodes, List<ScaleActivity.ActiveComputation> computations)
extends Record
implements Serializable
- Since:
- 2025.12
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionScaleActivity(ScaleActivity.Scale scale, List<ScaleActivity.ClusterNode> nodes, List<ScaleActivity.ActiveComputation> computations) Creates an instance of aScaleActivityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomputationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.nodes()Returns the value of thenodesrecord component.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScaleActivity
public ScaleActivity(ScaleActivity.Scale scale, List<ScaleActivity.ClusterNode> nodes, List<ScaleActivity.ActiveComputation> computations) Creates an instance of aScaleActivityrecord class.- Parameters:
scale- the value for thescalerecord componentnodes- the value for thenodesrecord componentcomputations- the value for thecomputationsrecord 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 withObjects::equals(Object,Object). -
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
computations
Returns the value of thecomputationsrecord component.- Returns:
- the value of the
computationsrecord component
-