|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RecoveryErrorHandler
Interface to implement for dealing with checksum errors during journal recovery.
| Nested Class Summary | |
|---|---|
static class |
RecoveryErrorHandler.AbortOnError
|
static class |
RecoveryErrorHandler.DeleteOnError
|
static class |
RecoveryErrorHandler.IgnoreOnError
|
| Field Summary | |
|---|---|
static RecoveryErrorHandler |
ABORT
On recovery error, aborts the recovery process, preventing the journal to be opened. |
static RecoveryErrorHandler |
DELETE
On recovery error, mark the failed locations as deleted and continue the recovery process. |
static RecoveryErrorHandler |
IGNORE
On recovery error, log about the failed locations and continue the recovery process. |
| Method Summary | |
|---|---|
void |
onError(Journal journal,
List<Location> locations)
Invoked by the journal during its recovery process in case of a checksum error for the given locations. |
| Field Detail |
|---|
static final RecoveryErrorHandler ABORT
static final RecoveryErrorHandler DELETE
static final RecoveryErrorHandler IGNORE
| Method Detail |
|---|
void onError(Journal journal,
List<Location> locations)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||