org.siebengeisslein.core
Class GCState

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

public class GCState
extends TwoFile


Field Summary
 
Fields inherited from class org.siebengeisslein.core.TwoFile
STATE_BECOMING_INVALID, STATE_INVALID, STATE_VALID
 
Constructor Summary
GCState(Config config, boolean create, Core core, BTree btree, TransactionManager transactionManager, CoreTransactionSequence seq)
           
 
Method Summary
protected  void init()
           
 boolean isActive()
           
 boolean isRunning()
           
 void notifyGCEnded(FlushThread flushThread)
           
 void notifyGCInitialized()
           
 void notifySet(FlushThread flushThread)
           
protected  void read(java.io.RandomAccessFile file)
           
 void recovered(FlushThread flushThread)
           
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

GCState

public GCState(Config config,
               boolean create,
               Core core,
               BTree btree,
               TransactionManager transactionManager,
               CoreTransactionSequence seq)
        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

init

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

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

notifySet

public void notifySet(FlushThread flushThread)
               throws java.io.IOException
Throws:
java.io.IOException

notifyGCInitialized

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

notifyGCEnded

public void notifyGCEnded(FlushThread flushThread)
                   throws java.io.IOException
Throws:
java.io.IOException

isActive

public boolean isActive()

recovered

public void recovered(FlushThread flushThread)
               throws java.io.IOException
Throws:
java.io.IOException

isRunning

public boolean isRunning()