Enum Class OChecksumMode
- All Implemented Interfaces:
Serializable,Comparable<OChecksumMode>,Constable
Defines per-page checksum modes supported by
write caches.- Author:
- Sergey Sitnikov
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionChecksums are completely off.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.Same asStoreAndVerifywith addition that storage will be switched in read only mode till it will not be repaired.Same asStoreAndVerifywith addition of exceptions thrown on errors.Checksums are calculated and stored on page flushes, verification is performed on each page load, errors are reported in the log. -
Method Summary
Modifier and TypeMethodDescriptionstatic OChecksumModeReturns the enum constant of this class with the specified name.static OChecksumMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Off
Checksums are completely off. -
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
Checksums are calculated and stored on page flushes, verification is performed on each page load, errors are reported in the log. -
StoreAndThrow
Same asStoreAndVerifywith addition of exceptions thrown on errors. This mode is useful for debugging and testing, but should be avoided in a production environment. -
StoreAndSwitchReadOnlyMode
Same asStoreAndVerifywith addition that storage will be switched in read only mode till it will not be repaired.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-