Record Class AbstractStorageEngine.StorageMetrics

java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.storage.AbstractStorageEngine.StorageMetrics
Enclosing class:
AbstractStorageEngine

protected static record AbstractStorageEngine.StorageMetrics(com.codahale.metrics.Timer operationTimer, ProjectedMeter projectedMeter, com.codahale.metrics.Meter successMeter, com.codahale.metrics.Meter failureMeter) extends Record
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    StorageMetrics(com.codahale.metrics.Timer operationTimer, ProjectedMeter projectedMeter, com.codahale.metrics.Meter successMeter, com.codahale.metrics.Meter failureMeter)
    Creates an instance of a StorageMetrics record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    com.codahale.metrics.Meter
    Returns the value of the failureMeter record component.
    final int
    Returns a hash code value for this object.
    com.codahale.metrics.Timer
    Returns the value of the operationTimer record component.
    Returns the value of the projectedMeter record component.
    com.codahale.metrics.Meter
    Returns the value of the successMeter record component.
    final String
    Returns a string representation of this record class.
    void
    update(StorageResult<?> result, long durationNanos)
     

    Methods inherited from class java.lang.Object

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

    • StorageMetrics

      protected StorageMetrics(com.codahale.metrics.Timer operationTimer, ProjectedMeter projectedMeter, com.codahale.metrics.Meter successMeter, com.codahale.metrics.Meter failureMeter)
      Creates an instance of a StorageMetrics record class.
      Parameters:
      operationTimer - the value for the operationTimer record component
      projectedMeter - the value for the projectedMeter record component
      successMeter - the value for the successMeter record component
      failureMeter - the value for the failureMeter record component
  • Method Details

    • update

      public void update(StorageResult<?> result, long durationNanos)
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • operationTimer

      public com.codahale.metrics.Timer operationTimer()
      Returns the value of the operationTimer record component.
      Returns:
      the value of the operationTimer record component
    • projectedMeter

      public ProjectedMeter projectedMeter()
      Returns the value of the projectedMeter record component.
      Returns:
      the value of the projectedMeter record component
    • successMeter

      public com.codahale.metrics.Meter successMeter()
      Returns the value of the successMeter record component.
      Returns:
      the value of the successMeter record component
    • failureMeter

      public com.codahale.metrics.Meter failureMeter()
      Returns the value of the failureMeter record component.
      Returns:
      the value of the failureMeter record component