Record Class Pipeline.Metrics
java.lang.Object
java.lang.Record
io.aleph0.yap.core.Pipeline.Metrics
- Enclosing interface:
Pipeline
public static record Pipeline.Metrics(int id, PipelineManager.PipelinePhase phase, PipelineManager.PipelineState state, Map<String,TaskManager.Metrics<?>> tasks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMetrics(int id, PipelineManager.PipelinePhase phase, PipelineManager.PipelineState state, Map<String, TaskManager.Metrics<?>> tasks) Creates an instance of aMetricsrecord class. -
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.intid()Returns the value of theidrecord component.phase()Returns the value of thephaserecord component.state()Returns the value of thestaterecord component.tasks()Returns the value of thetasksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Metrics
public Metrics(int id, PipelineManager.PipelinePhase phase, PipelineManager.PipelineState state, Map<String, TaskManager.Metrics<?>> tasks) Creates an instance of aMetricsrecord class.- Parameters:
id- the value for theidrecord componentphase- the value for thephaserecord componentstate- the value for thestaterecord componenttasks- the value for thetasksrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-