org.siebengeisslein.core
Class FreeBlockList

java.lang.Object
  extended by org.siebengeisslein.core.TwoFile
      extended by org.siebengeisslein.core.FreeBlockList

public class FreeBlockList
extends TwoFile


Field Summary
static java.lang.String EXT
           
static java.lang.String EXT2
           
 
Fields inherited from class org.siebengeisslein.core.TwoFile
STATE_BECOMING_INVALID, STATE_INVALID, STATE_VALID
 
Constructor Summary
FreeBlockList(java.lang.String name, boolean create)
           
 
Method Summary
 void addBlock(long block)
           
 boolean contains(long value)
           
protected  void init()
           
protected  void read(java.io.RandomAccessFile raf)
           
 void recovered()
           
 void removeBlock(long block)
           
 long reserveBlock()
           
protected  void write(java.io.RandomAccessFile raf)
           
 
Methods inherited from class org.siebengeisslein.core.TwoFile
close, commit, getState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXT

public static final java.lang.String EXT
See Also:
Constant Field Values

EXT2

public static final java.lang.String EXT2
See Also:
Constant Field Values
Constructor Detail

FreeBlockList

public FreeBlockList(java.lang.String name,
                     boolean create)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

init

protected void init()
Specified by:
init in class TwoFile

recovered

public void recovered()

read

protected void read(java.io.RandomAccessFile raf)
             throws java.io.IOException
Specified by:
read in class TwoFile
Throws:
java.io.IOException

write

protected void write(java.io.RandomAccessFile raf)
              throws java.io.IOException
Specified by:
write in class TwoFile
Throws:
java.io.IOException

addBlock

public void addBlock(long block)
              throws java.io.IOException
Throws:
java.io.IOException

removeBlock

public void removeBlock(long block)
                 throws java.io.IOException
Throws:
java.io.IOException

reserveBlock

public long reserveBlock()
                  throws java.io.IOException
Throws:
java.io.IOException

contains

public boolean contains(long value)