Record Class LogRecoveryReport
java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.LogRecoveryReport
- Record Components:
streamsScanned- number of streams foundsegmentsScanned- number of segment files scannedrecordsRecovered- number of valid records recoveredrecordsTruncated- number of records removed during recoverycorruptRecordsFound- number of corrupt records foundindexesRebuilt- number of indexes rebuilthighestRecoveredOffsets- highest recovered offset by streamdurationMillis- recovery duration in millisecondswarnings- redacted recovery warningserrors- redacted recovery errors
- All Implemented Interfaces:
Serializable
public record LogRecoveryReport(int streamsScanned, int segmentsScanned, long recordsRecovered, long recordsTruncated, long corruptRecordsFound, long indexesRebuilt, Map<LogStreamId, LogOffset> highestRecoveredOffsets, long durationMillis, List<String> warnings, List<String> errors)
extends Record
implements Serializable
Durable-log recovery report.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLogRecoveryReport(int streamsScanned, int segmentsScanned, long recordsRecovered, long recordsTruncated, long corruptRecordsFound, long indexesRebuilt, Map<LogStreamId, LogOffset> highestRecoveredOffsets, long durationMillis, List<String> warnings, List<String> errors) Creates an immutable report. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecorruptRecordsFoundrecord component.longReturns the value of thedurationMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehighestRecoveredOffsetsrecord component.longReturns the value of theindexesRebuiltrecord component.longReturns the value of therecordsRecoveredrecord component.longReturns the value of therecordsTruncatedrecord component.intReturns the value of thesegmentsScannedrecord component.intReturns the value of thestreamsScannedrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
LogRecoveryReport
public LogRecoveryReport(int streamsScanned, int segmentsScanned, long recordsRecovered, long recordsTruncated, long corruptRecordsFound, long indexesRebuilt, Map<LogStreamId, LogOffset> highestRecoveredOffsets, long durationMillis, List<String> warnings, List<String> errors) Creates an immutable report.
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
streamsScanned
public int streamsScanned()Returns the value of thestreamsScannedrecord component.- Returns:
- the value of the
streamsScannedrecord component
-
segmentsScanned
public int segmentsScanned()Returns the value of thesegmentsScannedrecord component.- Returns:
- the value of the
segmentsScannedrecord component
-
recordsRecovered
public long recordsRecovered()Returns the value of therecordsRecoveredrecord component.- Returns:
- the value of the
recordsRecoveredrecord component
-
recordsTruncated
public long recordsTruncated()Returns the value of therecordsTruncatedrecord component.- Returns:
- the value of the
recordsTruncatedrecord component
-
corruptRecordsFound
public long corruptRecordsFound()Returns the value of thecorruptRecordsFoundrecord component.- Returns:
- the value of the
corruptRecordsFoundrecord component
-
indexesRebuilt
public long indexesRebuilt()Returns the value of theindexesRebuiltrecord component.- Returns:
- the value of the
indexesRebuiltrecord component
-
highestRecoveredOffsets
Returns the value of thehighestRecoveredOffsetsrecord component.- Returns:
- the value of the
highestRecoveredOffsetsrecord component
-
durationMillis
public long durationMillis()Returns the value of thedurationMillisrecord component.- Returns:
- the value of the
durationMillisrecord component
-
warnings
-
errors
-