public class Journal extends Object
Constructor and Description |
---|
Journal(String folder,
String imageFileName,
String editLogFileName) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
createEditLog(long transactionId) |
void |
createImage(MasterInfo info) |
void |
createImage(MasterInfo info,
String imagePath) |
EditLog |
getEditLog() |
long |
getImageModTime() |
long |
loadEditLog(MasterInfo info)
Load edit log.
|
void |
loadImage(MasterInfo info) |
void |
loadSingleLogFile(MasterInfo info,
String path) |
void |
setMaxLogSize(int size)
Changes the max edit log size for testing purposes
|
public Journal(String folder, String imageFileName, String editLogFileName) throws IOException
IOException
public long getImageModTime() throws IOException
IOException
public void loadImage(MasterInfo info) throws IOException
IOException
public long loadEditLog(MasterInfo info) throws IOException
info
- The Master Info.IOException
public void loadSingleLogFile(MasterInfo info, String path) throws IOException
IOException
public void createImage(MasterInfo info) throws IOException
IOException
public void createImage(MasterInfo info, String imagePath) throws IOException
IOException
public void createEditLog(long transactionId) throws IOException
IOException
public EditLog getEditLog()
public void close()
public void setMaxLogSize(int size)
size
- Copyright © 2014. All rights reserved.