org.siebengeisslein.core
Class Core
java.lang.Object
org.siebengeisslein.core.Core
public class Core
- extends java.lang.Object
|
Constructor Summary |
Core(Config config,
boolean create)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Core
public Core(Config config,
boolean create)
throws java.io.IOException,
UnknownOIDException
- Throws:
java.io.IOException
UnknownOIDException
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