Record Class LogMetricsSnapshot
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.LogMetricsSnapshot
- Record Components:
appendCount- appended record countreadCount- cursor read operation countfsyncCount- storage sync countrecoveryCount- recovery run countcorruptionCount- detected corruption counttruncatedRecordCount- truncated record countbytesWritten- encoded bytes writtenbytesRead- encoded bytes readlastAppendTimestampMillis- last append timestamp in epoch millisecondslastRecoveryTimestampMillis- last recovery timestamp in epoch milliseconds
- All Implemented Interfaces:
Serializable
public record LogMetricsSnapshot(long appendCount, long readCount, long fsyncCount, long recoveryCount, long corruptionCount, long truncatedRecordCount, long bytesWritten, long bytesRead, long lastAppendTimestampMillis, long lastRecoveryTimestampMillis)
extends Record
implements Serializable
Durable-log metrics snapshot.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLogMetricsSnapshot(long appendCount, long readCount, long fsyncCount, long recoveryCount, long corruptionCount, long truncatedRecordCount, long bytesWritten, long bytesRead, long lastAppendTimestampMillis, long lastRecoveryTimestampMillis) Creates metrics. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theappendCountrecord component.longReturns the value of thebytesReadrecord component.longReturns the value of thebytesWrittenrecord component.longReturns the value of thecorruptionCountrecord component.static LogMetricsSnapshotempty()Empty metrics.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefsyncCountrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thelastAppendTimestampMillisrecord component.longReturns the value of thelastRecoveryTimestampMillisrecord component.longReturns the value of thereadCountrecord component.longReturns the value of therecoveryCountrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetruncatedRecordCountrecord component.
-
Constructor Details
-
LogMetricsSnapshot
public LogMetricsSnapshot(long appendCount, long readCount, long fsyncCount, long recoveryCount, long corruptionCount, long truncatedRecordCount, long bytesWritten, long bytesRead, long lastAppendTimestampMillis, long lastRecoveryTimestampMillis) Creates metrics.
-
-
Method Details
-
empty
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
appendCount
public long appendCount()Returns the value of theappendCountrecord component.- Returns:
- the value of the
appendCountrecord component
-
readCount
-
fsyncCount
public long fsyncCount()Returns the value of thefsyncCountrecord component.- Returns:
- the value of the
fsyncCountrecord component
-
recoveryCount
public long recoveryCount()Returns the value of therecoveryCountrecord component.- Returns:
- the value of the
recoveryCountrecord component
-
corruptionCount
public long corruptionCount()Returns the value of thecorruptionCountrecord component.- Returns:
- the value of the
corruptionCountrecord component
-
truncatedRecordCount
public long truncatedRecordCount()Returns the value of thetruncatedRecordCountrecord component.- Returns:
- the value of the
truncatedRecordCountrecord component
-
bytesWritten
public long bytesWritten()Returns the value of thebytesWrittenrecord component.- Returns:
- the value of the
bytesWrittenrecord component
-
bytesRead
-
lastAppendTimestampMillis
public long lastAppendTimestampMillis()Returns the value of thelastAppendTimestampMillisrecord component.- Returns:
- the value of the
lastAppendTimestampMillisrecord component
-
lastRecoveryTimestampMillis
public long lastRecoveryTimestampMillis()Returns the value of thelastRecoveryTimestampMillisrecord component.- Returns:
- the value of the
lastRecoveryTimestampMillisrecord component
-