ozone core API

org.ozoneDB.core.classicStore
Class PersistenceSpace

java.lang.Object
  |
  +--org.ozoneDB.core.classicStore.PersistenceSpace

public class PersistenceSpace
extends java.lang.Object


Field Summary
(package private) static java.lang.String CID
           
(package private)  ClassicStore classicStore
           
(package private)  DxSet clustersToCompress
           
(package private)  Cluster currentCluster
           
(package private)  TransactionID currentTransaction
           
(package private)  Env env
           
(package private) static int PROPS_FILE_VERSION
           
(package private)  DxSet touchedClusters
           
(package private) static java.lang.String TRANSACTION_FLAG
           
(package private) static int TRANSACTION_FLAG_VERSION
           
 
Constructor Summary
PersistenceSpace(Env _env)
           
 
Method Summary
protected  void abortTransaction(TransactionID tid)
           
protected  ClusterID[] allClusters()
           
protected  void commitTransaction(TransactionID tid)
           
protected  void compressCluster(ClusterID cid)
           
protected  void fillObjectSpace()
           
private  Cluster newCluster()
           
protected  void prepareCommitTransaction(TransactionID tid)
           
protected  Cluster readCluster(ClusterID cid, int whatToRead)
           
protected  boolean readProperties()
           
protected  void recover()
          do some recover stuff besides transaction rollback
private  void registerCluster(ClusterID cid)
           
protected  void rollBackTransaction(java.io.File transFlag)
           
protected  boolean shutdown()
           
protected  void startTransaction(TransactionID tid)
          begins a transaction commit with setting the transaction label
protected  boolean startup()
           
protected  void writeLeak(ClusterID cid, DeathObject dobj)
           
protected  ClusterID writeObject(DeathObject dobj, boolean serialize, boolean useClone)
           
protected  void writeProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PersistenceSpace

public PersistenceSpace(Env _env)
Method Detail

startup

protected boolean startup()
                   throws java.lang.Exception
java.lang.Exception

shutdown

protected boolean shutdown()
                    throws java.lang.Exception
java.lang.Exception

readProperties

protected boolean readProperties()

writeProperties

protected void writeProperties()
                        throws java.lang.Exception
java.lang.Exception

startTransaction

protected void startTransaction(TransactionID tid)
                         throws java.lang.Exception
begins a transaction commit with setting the transaction label

java.lang.Exception

prepareCommitTransaction

protected void prepareCommitTransaction(TransactionID tid)
                                 throws java.lang.Exception
java.lang.Exception

commitTransaction

protected void commitTransaction(TransactionID tid)

abortTransaction

protected void abortTransaction(TransactionID tid)

registerCluster

private void registerCluster(ClusterID cid)
                      throws java.lang.Exception
java.lang.Exception

newCluster

private Cluster newCluster()
                    throws java.lang.Exception
java.lang.Exception

readCluster

protected Cluster readCluster(ClusterID cid,
                              int whatToRead)
                       throws java.lang.Exception
java.lang.Exception

compressCluster

protected void compressCluster(ClusterID cid)
                        throws java.lang.Exception
java.lang.Exception

allClusters

protected ClusterID[] allClusters()

writeObject

protected ClusterID writeObject(DeathObject dobj,
                                boolean serialize,
                                boolean useClone)
                         throws java.lang.Exception
java.lang.Exception

writeLeak

protected void writeLeak(ClusterID cid,
                         DeathObject dobj)
                  throws java.lang.Exception
java.lang.Exception

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
java.lang.Exception

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.