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

    Constructors
    Constructor
    Description
    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 a Metrics record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the commencements record component.
    long
    Returns the value of the completions record component.
    long
    Returns the value of the consumed record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the exceptionalCompletions record component.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    long
    Returns the value of the normalCompletions record component.
    long
    Returns the value of the pending record component.
    Returns the value of the phase record component.
    long
    Returns the value of the produced record component.
    long
    Returns the value of the stalls record component.
    Returns the value of the state record component.
    long
    Returns the value of the stopCompletions record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the waits record component.
    Returns the value of the worker record component.
    long
    Returns the value of the workers record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a Metrics record class.
      Parameters:
      id - the value for the id record component
      phase - the value for the phase record component
      state - the value for the state record component
      worker - the value for the worker record component
      workers - the value for the workers record component
      commencements - the value for the commencements record component
      completions - the value for the completions record component
      normalCompletions - the value for the normalCompletions record component
      stopCompletions - the value for the stopCompletions record component
      exceptionalCompletions - the value for the exceptionalCompletions record component
      pending - the value for the pending record component
      consumed - the value for the consumed record component
      waits - the value for the waits record component
      produced - the value for the produced record component
      stalls - the value for the stalls record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • phase

      public TaskManager.TaskPhase phase()
      Returns the value of the phase record component.
      Returns:
      the value of the phase record component
    • state

      public TaskManager.TaskState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • worker

      public WorkerMetricsT worker()
      Returns the value of the worker record component.
      Returns:
      the value of the worker record component
    • workers

      public long workers()
      Returns the value of the workers record component.
      Returns:
      the value of the workers record component
    • commencements

      public long commencements()
      Returns the value of the commencements record component.
      Returns:
      the value of the commencements record component
    • completions

      public long completions()
      Returns the value of the completions record component.
      Returns:
      the value of the completions record component
    • normalCompletions

      public long normalCompletions()
      Returns the value of the normalCompletions record component.
      Returns:
      the value of the normalCompletions record component
    • stopCompletions

      public long stopCompletions()
      Returns the value of the stopCompletions record component.
      Returns:
      the value of the stopCompletions record component
    • exceptionalCompletions

      public long exceptionalCompletions()
      Returns the value of the exceptionalCompletions record component.
      Returns:
      the value of the exceptionalCompletions record component
    • pending

      public long pending()
      Returns the value of the pending record component.
      Returns:
      the value of the pending record component
    • consumed

      public long consumed()
      Returns the value of the consumed record component.
      Returns:
      the value of the consumed record component
    • waits

      public long waits()
      Returns the value of the waits record component.
      Returns:
      the value of the waits record component
    • produced

      public long produced()
      Returns the value of the produced record component.
      Returns:
      the value of the produced record component
    • stalls

      public long stalls()
      Returns the value of the stalls record component.
      Returns:
      the value of the stalls record component