Record Class NodeStats.Snapshot

java.lang.Object
java.lang.Record
com.helix.profiler.node.NodeStats.Snapshot
Enclosing class:
NodeStats

public static record NodeStats.Snapshot(String ruleName, String nodeId, long executionCount, long totalDurationNanos, long failureCount, double avgCostNanos, double failureRate, double costToFailureRatio) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    Snapshot(String ruleName, String nodeId, long executionCount, long totalDurationNanos, long failureCount, double avgCostNanos, double failureRate, double costToFailureRatio)
    Creates an instance of a Snapshot record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the avgCostNanos record component.
    double
    Returns the value of the costToFailureRatio record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the executionCount record component.
    long
    Returns the value of the failureCount record component.
    double
    Returns the value of the failureRate record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the nodeId record component.
    Returns the value of the ruleName record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalDurationNanos record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Snapshot

      public Snapshot(String ruleName, String nodeId, long executionCount, long totalDurationNanos, long failureCount, double avgCostNanos, double failureRate, double costToFailureRatio)
      Creates an instance of a Snapshot record class.
      Parameters:
      ruleName - the value for the ruleName record component
      nodeId - the value for the nodeId record component
      executionCount - the value for the executionCount record component
      totalDurationNanos - the value for the totalDurationNanos record component
      failureCount - the value for the failureCount record component
      avgCostNanos - the value for the avgCostNanos record component
      failureRate - the value for the failureRate record component
      costToFailureRatio - the value for the costToFailureRatio 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 '=='.
      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.
    • ruleName

      public String ruleName()
      Returns the value of the ruleName record component.
      Returns:
      the value of the ruleName record component
    • nodeId

      public String nodeId()
      Returns the value of the nodeId record component.
      Returns:
      the value of the nodeId record component
    • executionCount

      public long executionCount()
      Returns the value of the executionCount record component.
      Returns:
      the value of the executionCount record component
    • totalDurationNanos

      public long totalDurationNanos()
      Returns the value of the totalDurationNanos record component.
      Returns:
      the value of the totalDurationNanos record component
    • failureCount

      public long failureCount()
      Returns the value of the failureCount record component.
      Returns:
      the value of the failureCount record component
    • avgCostNanos

      public double avgCostNanos()
      Returns the value of the avgCostNanos record component.
      Returns:
      the value of the avgCostNanos record component
    • failureRate

      public double failureRate()
      Returns the value of the failureRate record component.
      Returns:
      the value of the failureRate record component
    • costToFailureRatio

      public double costToFailureRatio()
      Returns the value of the costToFailureRatio record component.
      Returns:
      the value of the costToFailureRatio record component