ozone core API

org.ozoneDB.core.storage.classicStore
Class PersistenceSpace

java.lang.Object
  extended byorg.ozoneDB.core.storage.classicStore.PersistenceSpace

public class PersistenceSpace
extends java.lang.Object

Author:
SMB

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

ozone core API

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