|
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 |
containerForID(Transaction ta,
ObjectID id)
|
ObjectContainer |
containerForName(Transaction ta,
java.lang.String name)
|
Transaction |
createTransaction(Env env,
User user)
Factory method for creating a new Transaction . |
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 |
newContainerAndLock(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. |
DxIterator |
objectIDIterator()
|
DxSet |
objectNames(Transaction ta)
|
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 ObjectContainer newContainerAndLock(Transaction ta, org.ozoneDB.OzoneCompatible target, ObjectID objID, Permissions permissions, int lockLevel) throws java.lang.Exception
ta
- target
- objID
- permissions
- lockLevel
-
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(org.ozoneDB.core.Transaction)
and commitTransaction(org.ozoneDB.core.Transaction)
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 DxSet objectNames(Transaction ta)
ta
- the running transaction
public ObjectContainer containerForID(Transaction ta, ObjectID id) throws org.ozoneDB.ObjectNotFoundException, java.io.IOException, java.lang.ClassNotFoundException
org.ozoneDB.ObjectNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public ObjectContainer containerForName(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.PermissionDeniedException
ta
- container
- name
-
org.ozoneDB.PermissionDeniedException
public DxBag clusterOfID(ObjectID id) throws java.lang.Exception
id
- The ObjectID if the container.
java.lang.Exception
public DxIterator objectIDIterator()
public void reportNamedObjectsToGarbageCollector()
public Transaction createTransaction(Env env, User user)
Transaction
.
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |