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
ConstructorsModifierConstructorDescriptionprotectedStorageMetrics(com.codahale.metrics.Timer operationTimer, ProjectedMeter projectedMeter, com.codahale.metrics.Meter successMeter, com.codahale.metrics.Meter failureMeter) Creates an instance of aStorageMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.codahale.metrics.MeterReturns the value of thefailureMeterrecord component.final inthashCode()Returns a hash code value for this object.com.codahale.metrics.TimerReturns the value of theoperationTimerrecord component.Returns the value of theprojectedMeterrecord component.com.codahale.metrics.MeterReturns the value of thesuccessMeterrecord component.final StringtoString()Returns a string representation of this record class.voidupdate(StorageResult<?> result, long durationNanos)
-
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 aStorageMetricsrecord class.- Parameters:
operationTimer- the value for theoperationTimerrecord componentprojectedMeter- the value for theprojectedMeterrecord componentsuccessMeter- the value for thesuccessMeterrecord componentfailureMeter- the value for thefailureMeterrecord component
-
-
Method Details
-
update
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
operationTimer
public com.codahale.metrics.Timer operationTimer()Returns the value of theoperationTimerrecord component.- Returns:
- the value of the
operationTimerrecord component
-
projectedMeter
Returns the value of theprojectedMeterrecord component.- Returns:
- the value of the
projectedMeterrecord component
-
successMeter
public com.codahale.metrics.Meter successMeter()Returns the value of thesuccessMeterrecord component.- Returns:
- the value of the
successMeterrecord component
-
failureMeter
public com.codahale.metrics.Meter failureMeter()Returns the value of thefailureMeterrecord component.- Returns:
- the value of the
failureMeterrecord component
-