Record Class TaskManager.Metrics<WorkerMetricsT>
java.lang.Object
java.lang.Record
io.aleph0.yap.core.task.TaskManager.Metrics<WorkerMetricsT>
- Enclosing class:
TaskManager<WorkerMetricsT>
public static record TaskManager.Metrics<WorkerMetricsT>(String id, TaskManager.TaskPhase phase, TaskManager.TaskState state, WorkerMetricsT worker, long workers, long commencements, long completions, long normalCompletions, long stopCompletions, long exceptionalCompletions, long pending, long consumed, long waits, long produced, long stalls)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMetrics(String id, TaskManager.TaskPhase phase, TaskManager.TaskState state, WorkerMetricsT worker, long workers, long commencements, long completions, long normalCompletions, long stopCompletions, long exceptionalCompletions, long pending, long consumed, long waits, long produced, long stalls) Creates an instance of aMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecommencementsrecord component.longReturns the value of thecompletionsrecord component.longconsumed()Returns the value of theconsumedrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexceptionalCompletionsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.longReturns the value of thenormalCompletionsrecord component.longpending()Returns the value of thependingrecord component.phase()Returns the value of thephaserecord component.longproduced()Returns the value of theproducedrecord component.longstalls()Returns the value of thestallsrecord component.state()Returns the value of thestaterecord component.longReturns the value of thestopCompletionsrecord component.final StringtoString()Returns a string representation of this record class.longwaits()Returns the value of thewaitsrecord component.worker()Returns the value of theworkerrecord component.longworkers()Returns the value of theworkersrecord component.
-
Constructor Details
-
Metrics
public Metrics(String id, TaskManager.TaskPhase phase, TaskManager.TaskState state, WorkerMetricsT worker, long workers, long commencements, long completions, long normalCompletions, long stopCompletions, long exceptionalCompletions, long pending, long consumed, long waits, long produced, long stalls) Creates an instance of aMetricsrecord class.- Parameters:
id- the value for theidrecord componentphase- the value for thephaserecord componentstate- the value for thestaterecord componentworker- the value for theworkerrecord componentworkers- the value for theworkersrecord componentcommencements- the value for thecommencementsrecord componentcompletions- the value for thecompletionsrecord componentnormalCompletions- the value for thenormalCompletionsrecord componentstopCompletions- the value for thestopCompletionsrecord componentexceptionalCompletions- the value for theexceptionalCompletionsrecord componentpending- the value for thependingrecord componentconsumed- the value for theconsumedrecord componentwaits- the value for thewaitsrecord componentproduced- the value for theproducedrecord componentstalls- the value for thestallsrecord 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
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
-
worker
Returns the value of theworkerrecord component.- Returns:
- the value of the
workerrecord component
-
workers
public long workers()Returns the value of theworkersrecord component.- Returns:
- the value of the
workersrecord component
-
commencements
public long commencements()Returns the value of thecommencementsrecord component.- Returns:
- the value of the
commencementsrecord component
-
completions
public long completions()Returns the value of thecompletionsrecord component.- Returns:
- the value of the
completionsrecord component
-
normalCompletions
public long normalCompletions()Returns the value of thenormalCompletionsrecord component.- Returns:
- the value of the
normalCompletionsrecord component
-
stopCompletions
public long stopCompletions()Returns the value of thestopCompletionsrecord component.- Returns:
- the value of the
stopCompletionsrecord component
-
exceptionalCompletions
public long exceptionalCompletions()Returns the value of theexceptionalCompletionsrecord component.- Returns:
- the value of the
exceptionalCompletionsrecord component
-
pending
public long pending()Returns the value of thependingrecord component.- Returns:
- the value of the
pendingrecord component
-
consumed
public long consumed()Returns the value of theconsumedrecord component.- Returns:
- the value of the
consumedrecord component
-
waits
public long waits()Returns the value of thewaitsrecord component.- Returns:
- the value of the
waitsrecord component
-
produced
public long produced()Returns the value of theproducedrecord component.- Returns:
- the value of the
producedrecord component
-
stalls
public long stalls()Returns the value of thestallsrecord component.- Returns:
- the value of the
stallsrecord component
-