| java.lang.Object org.ozoneDB.core.ServerComponent org.ozoneDB.core.wizardStore.WizardStore
Method Summary | |
public synchronized void | abortTransaction(Transaction ta) | protected void | beginCommit(Transaction ta) | public synchronized DxBag | clusterOfID(ObjectID id) | protected void | commitIDTable() | protected void | commitNameTable() | public synchronized void | commitTransaction(Transaction ta) | public ObjectContainer | containerForIDAndPin(Transaction ta, ObjectID id) Returns the ObjectContainer for the given ObjectID or null if there is
no such container.
If an ObjectContainer is returned, it is pinned once.
Thus, the caller has to ensure that the ObjectContainer is unpinned as soon as it is not needed anymore.
Parameters: ta - the Transaction for within the container is requested or null.Impl. | public synchronized ObjectContainer | containerForNameAndPin(Transaction ta, String name) | protected void | endCommit(Transaction ta) | protected TransactionData | getTransactionData(Transaction ta) | public synchronized void | init(Env _env) | protected boolean | isCleanShutdown() | public synchronized void | nameContainer(Transaction ta, ObjectContainer container, String name) | public synchronized ObjectContainer | newContainerAndPinAndLock(Transaction ta, OzoneCompatible target, ObjectID objID, Permissions permissions, int lockLevel) | public Object | newTransactionData() | public DxIterator | objectIDIterator() | public synchronized void | prepareCommitTransaction(Transaction ta) | protected synchronized void | recover() Fill idTable and nameTable from the information that are stored in the
clusters directly. | public void | reportNamedObjectsToGarbageCollector() Tells this StoreManager to report every named object to the garbage collector. | public void | save() | public synchronized void | shutdown() | public synchronized void | startup() | public void | updateLockLevel(Transaction _ta, ObjectContainer _container) |
COMMIT_FLAG_NAME | final protected static String COMMIT_FLAG_NAME(Code) | | |
ID_TABLE_NAME | final protected static String ID_TABLE_NAME(Code) | | |
NAME_TABLE_NAME | final protected static String NAME_TABLE_NAME(Code) | | |
garbageCollector | protected GarbageCollector garbageCollector(Code) | | The garbage collector. It should be notified in the event
- that a formerly unnamed object receives a name.
- that an object is freshly created
|
idTable | protected DxMap idTable(Code) | | Maps ObjectIDs to ClusterIDs
|
nameTable | protected DxMap nameTable(Code) | | Maps names to ObjectIDs
|
containerForIDAndPin | public ObjectContainer containerForIDAndPin(Transaction ta, ObjectID id) throws ObjectNotFoundExc, IOException, ClassNotFoundException(Code) | | Returns the ObjectContainer for the given ObjectID or null if there is
no such container.
If an ObjectContainer is returned, it is pinned once.
Thus, the caller has to ensure that the ObjectContainer is unpinned as soon as it is not needed anymore.
Parameters: ta - the Transaction for within the container is requested or null.Impl. Note: For performance reasons this is the only method of this Storethat is not synchronized. This will not cause problems because the onlyfield that is updated inside the method (currentContainer) does not needto be stable while this method is running. |
init | public synchronized void init(Env _env)(Code) | | |
isCleanShutdown | protected boolean isCleanShutdown()(Code) | | |
recover | protected synchronized void recover() throws Exception(Code) | | Fill idTable and nameTable from the information that are stored in the
clusters directly.
throws: Exception - If a cluster cannot be read. |
reportNamedObjectsToGarbageCollector | public void reportNamedObjectsToGarbageCollector()(Code) | | Tells this StoreManager to report every named object to the garbage collector.
|
Fields inherited from org.ozoneDB.core.ServerComponent | protected transient Env env(Code)(Java Doc)
|
|
|