Record Class ScanMode

java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.repair.ScanMode
Record Components:
indexFiles - Sollen Indexdateien auf korrektes Format überprüft werden?
containerFiles - Sollen Containerdateien auf korrektes Format und häufige Fehler überprüft werden?
indexHeaderConsistency - Sollen die Indexdateien auf konsistenz mit den Containerheadern überprüft werden?
containerHeaderConsistency - Sollen die Container-Header auf Konsistenz mit den Containerdaten überprüft werden?
deleteBackupIndexFiles - Sollen die veralteten Backup-Index-Dateien automatisch gelöscht werden?
fixErrors - Sollen gefundene Fehler gelöscht werden?

public record ScanMode(boolean indexFiles, boolean containerFiles, boolean indexHeaderConsistency, boolean containerHeaderConsistency, boolean deleteBackupIndexFiles, boolean fixErrors) extends Record
Attribute, wie ein Überprüfungslauf der PersistenceCheckRunner-Klasse durchgeführt werden soll.
  • Constructor Details

    • ScanMode

      public ScanMode(boolean indexFiles, boolean containerFiles, boolean indexHeaderConsistency, boolean containerHeaderConsistency, boolean deleteBackupIndexFiles, boolean fixErrors)
      Creates an instance of a ScanMode record class.
      Parameters:
      indexFiles - the value for the indexFiles record component
      containerFiles - the value for the containerFiles record component
      indexHeaderConsistency - the value for the indexHeaderConsistency record component
      containerHeaderConsistency - the value for the containerHeaderConsistency record component
      deleteBackupIndexFiles - the value for the deleteBackupIndexFiles record component
      fixErrors - the value for the fixErrors record component
  • 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. All components in this record class are compared with '=='.
      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.
    • indexFiles

      public boolean indexFiles()
      Returns the value of the indexFiles record component.
      Returns:
      the value of the indexFiles record component
    • containerFiles

      public boolean containerFiles()
      Returns the value of the containerFiles record component.
      Returns:
      the value of the containerFiles record component
    • indexHeaderConsistency

      public boolean indexHeaderConsistency()
      Returns the value of the indexHeaderConsistency record component.
      Returns:
      the value of the indexHeaderConsistency record component
    • containerHeaderConsistency

      public boolean containerHeaderConsistency()
      Returns the value of the containerHeaderConsistency record component.
      Returns:
      the value of the containerHeaderConsistency record component
    • deleteBackupIndexFiles

      public boolean deleteBackupIndexFiles()
      Returns the value of the deleteBackupIndexFiles record component.
      Returns:
      the value of the deleteBackupIndexFiles record component
    • fixErrors

      public boolean fixErrors()
      Returns the value of the fixErrors record component.
      Returns:
      the value of the fixErrors record component