Record Class MetaspaceReport

java.lang.Object
java.lang.Record
com.helix.experiments.metaspace.MetaspaceReport

public record MetaspaceReport(String scenarioName, int classesGenerated, double initialMetaspaceUsedMb, double finalMetaspaceUsedMb, double metaspaceGrowthMb, boolean gcTriggered, int activeClassLoaders) extends Record
Summary report of Metaspace memory usage and class loading metrics.
  • Constructor Summary

    Constructors
    Constructor
    Description
    MetaspaceReport(String scenarioName, int classesGenerated, double initialMetaspaceUsedMb, double finalMetaspaceUsedMb, double metaspaceGrowthMb, boolean gcTriggered, int activeClassLoaders)
    Creates an instance of a MetaspaceReport record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the activeClassLoaders record component.
    int
    Returns the value of the classesGenerated record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    double
    Returns the value of the finalMetaspaceUsedMb record component.
    boolean
    Returns the value of the gcTriggered record component.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the initialMetaspaceUsedMb record component.
    double
    Returns the value of the metaspaceGrowthMb record component.
    Returns the value of the scenarioName record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

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

    • MetaspaceReport

      public MetaspaceReport(String scenarioName, int classesGenerated, double initialMetaspaceUsedMb, double finalMetaspaceUsedMb, double metaspaceGrowthMb, boolean gcTriggered, int activeClassLoaders)
      Creates an instance of a MetaspaceReport record class.
      Parameters:
      scenarioName - the value for the scenarioName record component
      classesGenerated - the value for the classesGenerated record component
      initialMetaspaceUsedMb - the value for the initialMetaspaceUsedMb record component
      finalMetaspaceUsedMb - the value for the finalMetaspaceUsedMb record component
      metaspaceGrowthMb - the value for the metaspaceGrowthMb record component
      gcTriggered - the value for the gcTriggered record component
      activeClassLoaders - the value for the activeClassLoaders record component
  • Method Details

    • toString

      public 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.
    • scenarioName

      public String scenarioName()
      Returns the value of the scenarioName record component.
      Returns:
      the value of the scenarioName record component
    • classesGenerated

      public int classesGenerated()
      Returns the value of the classesGenerated record component.
      Returns:
      the value of the classesGenerated record component
    • initialMetaspaceUsedMb

      public double initialMetaspaceUsedMb()
      Returns the value of the initialMetaspaceUsedMb record component.
      Returns:
      the value of the initialMetaspaceUsedMb record component
    • finalMetaspaceUsedMb

      public double finalMetaspaceUsedMb()
      Returns the value of the finalMetaspaceUsedMb record component.
      Returns:
      the value of the finalMetaspaceUsedMb record component
    • metaspaceGrowthMb

      public double metaspaceGrowthMb()
      Returns the value of the metaspaceGrowthMb record component.
      Returns:
      the value of the metaspaceGrowthMb record component
    • gcTriggered

      public boolean gcTriggered()
      Returns the value of the gcTriggered record component.
      Returns:
      the value of the gcTriggered record component
    • activeClassLoaders

      public int activeClassLoaders()
      Returns the value of the activeClassLoaders record component.
      Returns:
      the value of the activeClassLoaders record component