Enum Class OChecksumMode

java.lang.Object
java.lang.Enum<OChecksumMode>
com.orientechnologies.orient.core.storage.OChecksumMode
All Implemented Interfaces:
Serializable, Comparable<OChecksumMode>, Constable

public enum OChecksumMode extends Enum<OChecksumMode>
Defines per-page checksum modes supported by write caches.
Author:
Sergey Sitnikov
  • Enum Constant Details

    • Off

      public static final OChecksumMode Off
      Checksums are completely off.
    • Store

      public static final OChecksumMode Store
      Checksums are calculated and stored on page flushes, no verification is done on page loads, stored checksums are verified only during user-initiated health checks.
    • StoreAndVerify

      public static final OChecksumMode StoreAndVerify
      Checksums are calculated and stored on page flushes, verification is performed on each page load, errors are reported in the log.
    • StoreAndThrow

      public static final OChecksumMode StoreAndThrow
      Same as StoreAndVerify with addition of exceptions thrown on errors. This mode is useful for debugging and testing, but should be avoided in a production environment.
    • StoreAndSwitchReadOnlyMode

      public static final OChecksumMode StoreAndSwitchReadOnlyMode
      Same as StoreAndVerify with addition that storage will be switched in read only mode till it will not be repaired.
  • Method Details

    • values

      public static OChecksumMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OChecksumMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null