Record Class StandardStatsTracker.SampledCpuMetrics
java.lang.Object
java.lang.Record
org.apache.nifi.controller.repository.metrics.tracking.StandardStatsTracker.SampledCpuMetrics
- Enclosing class:
StandardStatsTracker
private static record StandardStatsTracker.SampledCpuMetrics(long processingNanos, long cpuNanos)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final longThe field for thecpuNanosrecord component.private final longThe field for theprocessingNanosrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSampledCpuMetrics(long processingNanos, long cpuNanos) Creates an instance of aSampledCpuMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) StandardStatsTracker.SampledCpuMetricsadd(long processingNanos, long cpuNanos) longcpuNanos()Returns the value of thecpuNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theprocessingNanosrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
processingNanos
private final long processingNanosThe field for theprocessingNanosrecord component. -
cpuNanos
private final long cpuNanosThe field for thecpuNanosrecord component.
-
-
Constructor Details
-
SampledCpuMetrics
private SampledCpuMetrics(long processingNanos, long cpuNanos) Creates an instance of aSampledCpuMetricsrecord class.- Parameters:
processingNanos- the value for theprocessingNanosrecord componentcpuNanos- the value for thecpuNanosrecord component
-
-
Method Details
-
add
-
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 with '=='. -
processingNanos
public long processingNanos()Returns the value of theprocessingNanosrecord component.- Returns:
- the value of the
processingNanosrecord component
-
cpuNanos
public long cpuNanos()Returns the value of thecpuNanosrecord component.- Returns:
- the value of the
cpuNanosrecord component
-