Record Class ScaleActivity.ActiveComputation
java.lang.Object
java.lang.Record
org.nuxeo.ecm.core.bulk.introspection.ScaleActivity.ActiveComputation
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ScaleActivity
public static record ScaleActivity.ActiveComputation(String computation, Map<String,ScaleActivity.ActiveComputationStream> streams, List<ScaleActivity.ActiveComputationNode> nodes, @Nullable ScaleActivity.ActiveComputationRecommendation current, @Nullable ScaleActivity.ActiveComputationRecommendation best)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionActiveComputation(String computation, Map<String, ScaleActivity.ActiveComputationStream> streams, List<ScaleActivity.ActiveComputationNode> nodes) ActiveComputation(String computation, Map<String, ScaleActivity.ActiveComputationStream> streams, List<ScaleActivity.ActiveComputationNode> nodes, ScaleActivity.ActiveComputationRecommendation current, ScaleActivity.ActiveComputationRecommendation best) Creates an instance of aActiveComputationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbest()Returns the value of thebestrecord component.Returns the value of thecomputationrecord component.current()Returns the value of thecurrentrecord 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.streams()Returns the value of thestreamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActiveComputation
public ActiveComputation(String computation, Map<String, ScaleActivity.ActiveComputationStream> streams, List<ScaleActivity.ActiveComputationNode> nodes, @Nullable ScaleActivity.ActiveComputationRecommendation current, @Nullable ScaleActivity.ActiveComputationRecommendation best) Creates an instance of aActiveComputationrecord class.- Parameters:
computation- the value for thecomputationrecord componentstreams- the value for thestreamsrecord componentnodes- the value for thenodesrecord componentcurrent- the value for thecurrentrecord componentbest- the value for thebestrecord component
-
ActiveComputation
public ActiveComputation(String computation, Map<String, ScaleActivity.ActiveComputationStream> streams, List<ScaleActivity.ActiveComputationNode> nodes)
-
-
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). -
computation
Returns the value of thecomputationrecord component.- Returns:
- the value of the
computationrecord component
-
streams
Returns the value of thestreamsrecord component.- Returns:
- the value of the
streamsrecord component
-
nodes
Returns the value of thenodesrecord component.- Returns:
- the value of the
nodesrecord component
-
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-
best
Returns the value of thebestrecord component.- Returns:
- the value of the
bestrecord component
-