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
|
existingLogs
private 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
IOException
ObjectOutputStream next() throws IOException
IOException
void commit() throws IOException
IOException
void close() throws IOException
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.