org.siebengeisslein.core
Class DataStoreState

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

public class DataStoreState
extends TwoFile


Field Summary
 
Fields inherited from class org.siebengeisslein.core.TwoFile
STATE_BECOMING_INVALID, STATE_INVALID, STATE_VALID
 
Constructor Summary
DataStoreState(java.lang.String name, boolean create)
           
 
Method Summary
 void endCompressing()
           
 int getActiveFile()
           
protected  void init()
           
 boolean isCompressing()
           
protected  void read(java.io.RandomAccessFile file)
           
 void setCompressing(boolean compressing)
           
 void startCompressing()
           
protected  void write(java.io.RandomAccessFile file)
           
 
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
 

Constructor Detail

DataStoreState

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

init

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

read

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

write

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

getActiveFile

public int getActiveFile()

startCompressing

public void startCompressing()
                      throws java.io.IOException
Throws:
java.io.IOException

endCompressing

public void endCompressing()
                    throws java.io.IOException
Throws:
java.io.IOException

isCompressing

public boolean isCompressing()

setCompressing

public void setCompressing(boolean compressing)