Record Class LogRecoveryReport

java.lang.Object
java.lang.Record
org.j7m.middleware.api.durablelog.LogRecoveryReport
Record Components:
streamsScanned - number of streams found
segmentsScanned - number of segment files scanned
recordsRecovered - number of valid records recovered
recordsTruncated - number of records removed during recovery
corruptRecordsFound - number of corrupt records found
indexesRebuilt - number of indexes rebuilt
highestRecoveredOffsets - highest recovered offset by stream
durationMillis - recovery duration in milliseconds
warnings - redacted recovery warnings
errors - 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 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

      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • streamsScanned

      public int streamsScanned()
      Returns the value of the streamsScanned record component.
      Returns:
      the value of the streamsScanned record component
    • segmentsScanned

      public int segmentsScanned()
      Returns the value of the segmentsScanned record component.
      Returns:
      the value of the segmentsScanned record component
    • recordsRecovered

      public long recordsRecovered()
      Returns the value of the recordsRecovered record component.
      Returns:
      the value of the recordsRecovered record component
    • recordsTruncated

      public long recordsTruncated()
      Returns the value of the recordsTruncated record component.
      Returns:
      the value of the recordsTruncated record component
    • corruptRecordsFound

      public long corruptRecordsFound()
      Returns the value of the corruptRecordsFound record component.
      Returns:
      the value of the corruptRecordsFound record component
    • indexesRebuilt

      public long indexesRebuilt()
      Returns the value of the indexesRebuilt record component.
      Returns:
      the value of the indexesRebuilt record component
    • highestRecoveredOffsets

      public Map<LogStreamId, LogOffset> highestRecoveredOffsets()
      Returns the value of the highestRecoveredOffsets record component.
      Returns:
      the value of the highestRecoveredOffsets record component
    • durationMillis

      public long durationMillis()
      Returns the value of the durationMillis record component.
      Returns:
      the value of the durationMillis record component
    • warnings

      public List<String> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component
    • errors

      public List<String> errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component