|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.journal.active.ControlFile
Control file holds the last known good state of the journal. It stores the state in record that is versioned and repeated twice in the file so that a failure in the middle of the write of the first or second record do not not result in an unknown state.
Constructor Summary | |
ControlFile(File fileName,
int controlDataSize)
|
Method Summary | |
void |
dispose()
This method should not throw any exceptions. |
Packet |
getControlData()
|
boolean |
load()
|
void |
lock()
Locks the control file. |
void |
store()
|
void |
unlock()
Un locks the control file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ControlFile(File fileName, int controlDataSize) throws IOException
Method Detail |
public void lock() throws IOException
IOException
public void unlock() throws IOException
IOException
public boolean load() throws IOException
IOException
public void store() throws IOException
IOException
public Packet getControlData()
public void dispose()
Disposable
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |