| org.ozoneDB.core.StoreManager
All known Subclasses: org.ozoneDB.core.wizardStore.WizardStore,
StoreManager | public interface StoreManager (Code) | | Together with the
ObjectContainer interface this is the StoreManager
back-end API.
author: SMB version: $Revision: 1.2 $Date: 2002/06/08 00:49:38 $ |
Method Summary | |
public void | abortTransaction(Transaction ta) | public DxBag | clusterOfID(ObjectID id) Force the Store to make a guess which objects are used together with the
container with the specified id. | public void | commitTransaction(Transaction ta) | public ObjectContainer | containerForIDAndPin(Transaction ta, ObjectID id) | public ObjectContainer | containerForNameAndPin(Transaction ta, String name) | public void | init(Env env) Aid constructor, because a store is instantiated with 'newInstance',
where we've got no arguments. | public void | nameContainer(Transaction ta, ObjectContainer container, String name) | public ObjectContainer | newContainerAndPinAndLock(Transaction ta, OzoneCompatible target, ObjectID objID, Permissions permissions, int lockLevel) Creates a new object container and initializes it with the specified
target object. | public Object | newTransactionData() | public DxIterator | objectIDIterator() | public void | prepareCommitTransaction(Transaction ta) Prepare the specified transaction for commit. | public void | reportNamedObjectsToGarbageCollector() Tells this StoreManager to report every named object to the garbage collector. | public void | shutdown() | public void | startup() | public void | updateLockLevel(Transaction ta, ObjectContainer container) Update lock level of the given container according to the leve of the
containers lock object. |
clusterOfID | public DxBag clusterOfID(ObjectID id) throws Exception(Code) | | Force the Store to make a guess which objects are used together with the
container with the specified id.
Parameters: id - The ObjectID if the container. |
init | public void init(Env env)(Code) | | Aid constructor, because a store is instantiated with 'newInstance',
where we've got no arguments.
|
newContainerAndPinAndLock | public ObjectContainer newContainerAndPinAndLock(Transaction ta, OzoneCompatible target, ObjectID objID, Permissions permissions, int lockLevel) throws Exception(Code) | | Creates a new object container and initializes it with the specified
target object. The new container is immediatly accessible from the calling
transaction via containerByID but it is not joined to this transaction.
It needs to be joined and commited afterwards.
Iff this method returns normally, the returned container is pinned and thus has to be unpinned.
Iff this method returns normally, the returned container is locked with the given lock level.
Parameters: ta - Parameters: target - Parameters: objID - Parameters: permission - Parameters: name - An container-proxy for the created container. |
prepareCommitTransaction | public void prepareCommitTransaction(Transaction ta) throws IOException, ClassNotFoundException(Code) | | Prepare the specified transaction for commit. All operations that may
fail during the commit process should be done here. However, this method
must not change any global data structures such as the idTable that
are used by other transactions too.
The
TransactionManager let this method run exclusivly. However,
prepareCommitTransaction and
commitTransaction are not
an atomar operation.
Parameters: ta - Transaction that will be commited. |
reportNamedObjectsToGarbageCollector | public void reportNamedObjectsToGarbageCollector()(Code) | | Tells this StoreManager to report every named object to the garbage collector.
|
|
|