|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Together with the ObjectContainer
interface this is the StoreManager
back-end API.
Method Summary | |
void |
abortTransaction(Transaction ta)
|
DxBag |
clusterOfID(ObjectID id)
Force the Store to make a guess which objects are used together with the container with the specified id. |
void |
commitTransaction(Transaction ta)
|
ObjectContainer |
containerForIDAndPin(Transaction ta,
ObjectID id)
|
ObjectContainer |
containerForNameAndPin(Transaction ta,
java.lang.String name)
|
void |
init(Env env)
Aid constructor, because a store is instantiated with 'newInstance', where we've got no arguments. |
void |
nameContainer(Transaction ta,
ObjectContainer container,
java.lang.String name)
|
ObjectContainer |
newContainerAndPinAndLock(Transaction ta,
org.ozoneDB.OzoneCompatible target,
ObjectID objID,
Permissions permissions,
int lockLevel)
Creates a new object container and initializes it with the specified target object. |
java.lang.Object |
newTransactionData()
|
DxIterator |
objectIDIterator()
|
void |
prepareCommitTransaction(Transaction ta)
Prepare the specified transaction for commit. |
void |
reportNamedObjectsToGarbageCollector()
Tells this StoreManager to report every named object to the garbage collector. |
void |
shutdown()
|
void |
startup()
|
void |
updateLockLevel(Transaction ta,
ObjectContainer container)
Update lock level of the given container according to the leve of the containers lock object. |
Method Detail |
public void init(Env env)
public void startup() throws java.lang.Exception
java.lang.Exception
public void shutdown() throws java.lang.Exception
java.lang.Exception
public java.lang.Object newTransactionData()
public ObjectContainer newContainerAndPinAndLock(Transaction ta, org.ozoneDB.OzoneCompatible target, ObjectID objID, Permissions permissions, int lockLevel) throws java.lang.Exception
ta
- target
- objID
-
java.lang.Exception
public void updateLockLevel(Transaction ta, ObjectContainer container) throws java.io.IOException
java.io.IOException
public void prepareCommitTransaction(Transaction ta) throws java.io.IOException, java.lang.ClassNotFoundException
The TransactionManager
let this method run exclusivly. However,
prepareCommitTransaction
and commitTransaction
are not
an atomar operation.
ta
- Transaction that will be commited.
java.io.IOException
java.lang.ClassNotFoundException
public void commitTransaction(Transaction ta) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void abortTransaction(Transaction ta) throws java.io.IOException, java.lang.ClassNotFoundException
ta
- ID of the comitting transaction.
java.io.IOException
java.lang.ClassNotFoundException
public ObjectContainer containerForIDAndPin(Transaction ta, ObjectID id) throws org.ozoneDB.ObjectNotFoundExc, java.io.IOException, java.lang.ClassNotFoundException
org.ozoneDB.ObjectNotFoundExc
java.io.IOException
java.lang.ClassNotFoundException
public ObjectContainer containerForNameAndPin(Transaction ta, java.lang.String name) throws java.lang.Exception
name
- The object name to search for.ta
-
java.lang.Exception
public void nameContainer(Transaction ta, ObjectContainer container, java.lang.String name) throws org.ozoneDB.PermissionDeniedExc
ta
- container
- name
-
org.ozoneDB.PermissionDeniedExc
public DxBag clusterOfID(ObjectID id) throws java.lang.Exception
id
- The ObjectID if the container.
java.lang.Exception
public DxIterator objectIDIterator()
public void reportNamedObjectsToGarbageCollector()
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |