ozone core API

org.ozoneDB.core.storage
Class AbstractClusterStore

java.lang.Object
  extended byorg.ozoneDB.core.storage.AbstractClusterStore
Direct Known Subclasses:
ClusterStore, ClusterStore

public abstract class AbstractClusterStore
extends java.lang.Object

Author:
Per Nyfelt

Field Summary
protected  Env env
           
static java.lang.String POSTFIX_CLUSTER
           
static java.lang.String POSTFIX_LOCK
           
static java.lang.String POSTFIX_SEPARATOR
           
static java.lang.String POSTFIX_TEMP
           
 long touchCount
           
 
Constructor Summary
AbstractClusterStore(Env _env)
           
 
Method Summary
protected abstract  void abortCluster(Transaction ta, ClusterID cid)
           
protected abstract  void activateCluster(Cluster cluster, int size)
           
 java.lang.String basename(ClusterID cid)
           
protected abstract  void commitCluster(Transaction ta, ClusterID cid)
           
abstract  int currentBytesPerContainer()
           
protected abstract  void deactivateCluster(Cluster cluster)
           
protected abstract  void prepareCommitCluster(Transaction ta, ClusterID cid)
           
abstract  void registerContainerAndLock(StorageObjectContainer container, Permissions perms, Transaction locker, int lockLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POSTFIX_SEPARATOR

public static final java.lang.String POSTFIX_SEPARATOR
See Also:
Constant Field Values

POSTFIX_CLUSTER

public static final java.lang.String POSTFIX_CLUSTER
See Also:
Constant Field Values

POSTFIX_LOCK

public static final java.lang.String POSTFIX_LOCK
See Also:
Constant Field Values

POSTFIX_TEMP

public static final java.lang.String POSTFIX_TEMP
See Also:
Constant Field Values

touchCount

public transient long touchCount

env

protected transient Env env
Constructor Detail

AbstractClusterStore

public AbstractClusterStore(Env _env)
Method Detail

basename

public java.lang.String basename(ClusterID cid)

currentBytesPerContainer

public abstract int currentBytesPerContainer()

registerContainerAndLock

public abstract void registerContainerAndLock(StorageObjectContainer container,
                                              Permissions perms,
                                              Transaction locker,
                                              int lockLevel)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

activateCluster

protected abstract void activateCluster(Cluster cluster,
                                        int size)

deactivateCluster

protected abstract void deactivateCluster(Cluster cluster)
                                   throws java.io.IOException
Throws:
java.io.IOException

prepareCommitCluster

protected abstract void prepareCommitCluster(Transaction ta,
                                             ClusterID cid)
                                      throws java.io.IOException,
                                             java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

commitCluster

protected abstract void commitCluster(Transaction ta,
                                      ClusterID cid)
                               throws java.io.IOException,
                                      java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

abortCluster

protected abstract void abortCluster(Transaction ta,
                                     ClusterID cid)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

ozone core API

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