org.ozoneDB.core.storage.classicStore
Class ObjectSpace
java.lang.Object
org.ozoneDB.core.storage.classicStore.ObjectSpace
- public final class ObjectSpace
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
subSerialVersionUID
static final byte subSerialVersionUID
- See Also:
- Constant Field Values
env
protected transient Env env
- The environment of this object.
clusterSpace
protected transient ClusterSpace clusterSpace
objectTable
protected DxMap objectTable
nameTable
protected DxMap nameTable
ObjectSpace
public ObjectSpace(Env _env)
startup
public void startup()
throws java.lang.Exception
- Throws:
java.lang.Exception
shutdown
public void shutdown()
throws java.lang.Exception
- Throws:
java.lang.Exception
addObject
public void addObject(ObjectContainer container)
newContainer
public ObjectContainer newContainer(Transaction ta,
org.ozoneDB.OzoneCompatible target,
ObjectID objID,
Permissions permissions)
throws ClassicStoreException
- Creates a new object container for the given target with the given oid
and an optional name.
- Throws:
ClassicStoreException
objectForID
public ObjectContainer objectForID(ObjectID id)
- Parameters:
id
- The object id to search for.
- Returns:
- The object container with the given id or null.
nameObject
public void nameObject(ObjectContainer container,
java.lang.String name)
throws ClassicStoreException
- Applies a name to an object.
- Parameters:
container
- The container to name.name
- The new name of the container.
- Throws:
ClassicStoreException
objectForName
public ObjectContainer objectForName(java.lang.String name)
- Parameters:
name
-
- Returns:
- The object container with the given name.
deleteObject
public void deleteObject(ObjectContainer toRemove)
- entfernt ObjectContainer fuer entsprechende ObjectID;
prepareCommitObjects
public void prepareCommitObjects(ClassicTransaction ta)
commitObjects
public void commitObjects(Transaction ta)
abortObjects
public void abortObjects(ClassicTransaction ta)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.