public enum WALRecoveryMode extends java.lang.Enum<WALRecoveryMode>
| 枚举常量和说明 |
|---|
AbsoluteConsistency
Recover from clean shutdown
We don't expect to find any corruption in the WAL
Use case : This is ideal for unit tests and rare applications that
can require high consistency guarantee
|
PointInTimeRecovery
Recover to point-in-time consistency
We stop the WAL playback on discovering WAL inconsistency
Use case : Ideal for systems that have disk controller cache like
hard disk, SSD without super capacitor that store related data
|
SkipAnyCorruptedRecords
Recovery after a disaster
We ignore any corruption in the WAL and try to salvage as much data as
possible
Use case : Ideal for last ditch effort to recover data or systems that
operate with low grade unrelated data
|
TolerateCorruptedTailRecords
Original levelDB recovery
We tolerate incomplete record in trailing data on all logs
Use case : This is legacy behavior (default)
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte |
getValue()
Returns the byte value of the enumerations value.
|
static WALRecoveryMode |
getWALRecoveryMode(byte byteIdentifier)
Get the WALRecoveryMode enumeration value by
passing the byte identifier to this method.
|
static WALRecoveryMode |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static WALRecoveryMode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WALRecoveryMode TolerateCorruptedTailRecords
We tolerate incomplete record in trailing data on all logs Use case : This is legacy behavior (default)
public static final WALRecoveryMode AbsoluteConsistency
We don't expect to find any corruption in the WAL Use case : This is ideal for unit tests and rare applications that can require high consistency guarantee
public static final WALRecoveryMode PointInTimeRecovery
public static final WALRecoveryMode SkipAnyCorruptedRecords
public static WALRecoveryMode[] values()
for (WALRecoveryMode c : WALRecoveryMode.values()) System.out.println(c);
public static WALRecoveryMode valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public byte getValue()
Returns the byte value of the enumerations value.
public static WALRecoveryMode getWALRecoveryMode(byte byteIdentifier)
Get the WALRecoveryMode enumeration value by passing the byte identifier to this method.
byteIdentifier - of WALRecoveryMode.java.lang.IllegalArgumentException - If WALRecoveryMode cannot be found for the
provided byteIdentifier