org.siebengeisslein.core
Class Core

java.lang.Object
  extended by org.siebengeisslein.core.Core

public class Core
extends java.lang.Object


Constructor Summary
Core(Config config, boolean create)
           
 
Method Summary
 long addEntry(long objID, CoreEntry entry, CoreTransaction ct)
           
 void close()
           
 void closeImpl()
           
 void commit(CoreTransaction ct)
           
 void compress()
           
 CoreTransaction createTransaction()
           
 CoreEntry getEntry(long objID)
           
 LockManager getLockManager()
           
 boolean isGCActive()
           
 void removeEntry(java.lang.Long oid, CoreTransaction ct)
           
 long reserveObjID()
           
 long reserveObjIDs(int count)
           
 void setEntry(long objID, CoreEntry entry, CoreTransaction ct)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Core

public Core(Config config,
            boolean create)
     throws java.io.IOException,
            UnknownOIDException
Throws:
java.io.IOException
UnknownOIDException
Method Detail

getLockManager

public LockManager getLockManager()

close

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

closeImpl

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

reserveObjIDs

public long reserveObjIDs(int count)
                   throws java.io.IOException
Throws:
java.io.IOException

reserveObjID

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

createTransaction

public CoreTransaction createTransaction()
                                  throws java.io.IOException
Throws:
java.io.IOException

addEntry

public long addEntry(long objID,
                     CoreEntry entry,
                     CoreTransaction ct)
              throws java.io.IOException,
                     UnknownOIDException
Throws:
java.io.IOException
UnknownOIDException

setEntry

public void setEntry(long objID,
                     CoreEntry entry,
                     CoreTransaction ct)
              throws java.io.IOException,
                     CoreException
Throws:
java.io.IOException
CoreException

getEntry

public CoreEntry getEntry(long objID)
                   throws java.io.IOException,
                          UnknownOIDException,
                          java.lang.InterruptedException
Throws:
java.io.IOException
UnknownOIDException
java.lang.InterruptedException

removeEntry

public void removeEntry(java.lang.Long oid,
                        CoreTransaction ct)
                 throws java.io.IOException
Throws:
java.io.IOException

isGCActive

public boolean isGCActive()

commit

public void commit(CoreTransaction ct)
            throws UnknownOIDException,
                   java.io.IOException
Throws:
UnknownOIDException
java.io.IOException

compress

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