org.apache.activeio.journal.active
Class ControlFile
java.lang.Object
org.apache.activeio.journal.active.ControlFile
public final class ControlFile
- extends Object
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.
- Version:
- $Revision: 1.1 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlFile
public ControlFile(File fileName,
int controlDataSize)
throws IOException
- Throws:
IOException
lock
public void lock()
throws IOException
- Locks the control file.
- Throws:
IOException
unlock
public void unlock()
throws IOException
- Un locks the control file.
- Throws:
IOException
load
public boolean load()
throws IOException
- Throws:
IOException
store
public void store()
throws IOException
- Throws:
IOException
getControlData
public Packet getControlData()
dispose
public void dispose()
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.