org.ozoneDB.core.storage.classicStore
Class PersistenceSpace
java.lang.Object
org.ozoneDB.core.storage.classicStore.PersistenceSpace
- public class PersistenceSpace
- extends java.lang.Object
- Author:
- SMB
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRANSACTION_FLAG
static final java.lang.String TRANSACTION_FLAG
- See Also:
- Constant Field Values
TRANSACTION_FLAG_VERSION
static final int TRANSACTION_FLAG_VERSION
- See Also:
- Constant Field Values
PROPS_FILE_VERSION
static final int PROPS_FILE_VERSION
- See Also:
- Constant Field Values
CID
static final java.lang.String CID
- See Also:
- Constant Field Values
env
Env env
classicStore
ClassicStore classicStore
currentCluster
Cluster currentCluster
currentTransaction
TransactionID currentTransaction
touchedClusters
DxSet touchedClusters
clustersToCompress
DxSet clustersToCompress
PersistenceSpace
public PersistenceSpace(Env _env)
startup
protected boolean startup()
throws java.lang.Exception
- Throws:
java.lang.Exception
shutdown
protected boolean shutdown()
throws java.lang.Exception
- Throws:
java.lang.Exception
readProperties
protected boolean readProperties()
writeProperties
protected void writeProperties()
startTransaction
protected void startTransaction(TransactionID tid)
throws org.ozoneDB.OzoneInternalException
- begins a transaction commit with setting the transaction label
- Throws:
org.ozoneDB.OzoneInternalException
prepareCommitTransaction
protected void prepareCommitTransaction(TransactionID tid)
throws org.ozoneDB.OzoneInternalException
- Throws:
org.ozoneDB.OzoneInternalException
commitTransaction
protected void commitTransaction(TransactionID tid)
abortTransaction
protected void abortTransaction(TransactionID tid)
registerCluster
private void registerCluster(ClusterID cid)
throws org.ozoneDB.OzoneInternalException
- Throws:
org.ozoneDB.OzoneInternalException
newCluster
private Cluster newCluster()
throws java.io.IOException
- Throws:
java.io.IOException
readCluster
protected Cluster readCluster(ClusterID cid,
int whatToRead)
throws org.ozoneDB.OzoneInternalException
- Throws:
org.ozoneDB.OzoneInternalException
compressCluster
protected void compressCluster(ClusterID cid)
throws java.io.IOException
- Throws:
java.io.IOException
allClusters
protected ClusterID[] allClusters()
writeObject
protected ClusterID writeObject(DeathObject dobj,
boolean serialize,
boolean useClone)
throws java.io.IOException
- Throws:
java.io.IOException
writeLeak
protected void writeLeak(ClusterID cid,
DeathObject dobj)
throws org.ozoneDB.OzoneInternalException
- Throws:
org.ozoneDB.OzoneInternalException
fillObjectSpace
protected void fillObjectSpace()
recover
protected void recover()
- do some recover stuff besides transaction rollback
rollBackTransaction
protected void rollBackTransaction(java.io.File transFlag)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.