class SnapshotFile extends LogFile
| Modifier and Type | Field and Description |
|---|---|
private String |
fileName |
private static Logger |
logger
Logger for logging persistent store related information
|
private ObjectOutputStream |
out |
private String |
previousFilename |
private RandomAccessFile |
snapshotFile |
private int |
suffix |
ABORT_OP, baseDir, baseFile, BATCH_TAKE_OP, BATCH_WRITE_OP, BOOT_OP, CANCEL_OP, COMMIT_OP, JOINSTATE_OP, LOG_TYPE, LOG_VERSION, NOTIFIED_OP, PREPARE_OP, REGISTER_OP, RENEW_OP, TAKE_OP, UUID_OP, WRITE_OP| Constructor and Description |
|---|
SnapshotFile(String basePath,
File[] recover) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
close()
Close the log, but don't remove it.
|
(package private) void |
commit() |
(package private) void |
destroy()
Override destroy so we can try to close snapshotFile before calling
super tries to delete all the files.
|
(package private) ObjectOutputStream |
next()
Switch this over to the next path in the list
|
existingLogsprivate volatile RandomAccessFile snapshotFile
private volatile String fileName
private volatile String previousFilename
private volatile ObjectOutputStream out
private volatile int suffix
private static final Logger logger
SnapshotFile(String basePath, File[] recover) throws IOException
IOExceptionObjectOutputStream next() throws IOException
IOExceptionvoid commit()
throws IOException
IOExceptionvoid close()
throws IOException
IOExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.