Examples of releaseLock()


Examples of org.exolab.castor.persist.LockEngine.releaseLock()

                    "persist.objectDeleted", object.getClass().getName(), oid
                            .getIdentity()));
        }

        // Release the lock, forget about the object in this transaction
        engine.releaseLock(this, oid);
        _tracker.untrackObject(object);

        if (_callback != null) {
            _callback.releasing(object, false);
        } else if (molder != null && molder.getCallback() != null) {
View Full Code Here

Examples of org.exolab.castor.persist.LockEngine.releaseLock()

                // transaction, release its lock.
                if (_tracker.isUpdateCacheNeeded(toCommit)) {
                    engine.updateCache(this, oid, toCommit);
                }

                engine.releaseLock(this, oid);
            }

            // Call our release callback on all processed objects.
            if (_callback != null) {
                _callback.releasing(toCommit, true);
View Full Code Here

Examples of org.exolab.castor.persist.LockEngine.releaseLock()

                        // it no longer exists, forget about it in the engine.
                        engine.forgetObject(this, oid);
                    } else {
                        // Object has been queried (possibly) deleted in this
                        // transaction and release the lock.
                        engine.releaseLock(this, oid);
                    }
                }

                if (_callback != null) {
                    _callback.releasing(object, false);
View Full Code Here

Examples of org.exolab.castor.persist.LockEngine.releaseLock()

                // an entry is added to the object list to prevent
                // infinite loops due to bi-directional references
                _tracker.trackObject(molder, oid, identity);

                if (engine.expireCache(this, oid, _lockTimeout)) {
                    engine.releaseLock(this, oid);
                }
            } catch (LockNotGrantedException except) {
                throw except;
            } finally {
                _tracker.untrackObject(identity);
View Full Code Here

Examples of org.h2.store.fs.FileObject.releaseLock()

        assertThrows(EOFException.class, fo).readFully(buffer, 0, 1);
        assertEquals(fsBase + "/test", fo.getName().replace('\\', '/'));
        assertEquals("test", fs.getFileName(fo.getName()));
        assertEquals(fsBase, fs.getParent(fo.getName()).replace('\\', '/'));
        fo.tryLock();
        fo.releaseLock();
        assertEquals(10000, fo.length());
        fo.close();
        assertEquals(10000, fs.length(fsBase + "/test"));
        fo = fs.openFileObject(fsBase + "/test", "r");
        byte[] test = new byte[10000];
View Full Code Here

Examples of org.olat.core.util.coordinate.Locker.releaseLock()

    LockEntry le = entries.get(0);
    // must be original owner
    assertEquals(le.getOwner().getName(), ident.getName());

    // release lock
    cl.releaseLock(res3);
    DBFactory.getInstance().closeSession();
    // test the admin
    entries = cl.adminOnlyGetLockEntries();
    assertEquals(0,entries.size());
View Full Code Here

Examples of org.olat.modules.webFeed.managers.FeedManager.releaseLock()

          fireEvent(ureq, ItemsController.FEED_INFO_IS_DIRTY_EVENT);
        }
        vcItems.setDirty(true);
        // in case we were in single item view, show all items
        mainPanel.setContent(vcItems);
        feedManager.releaseLock(lock);
        lock = null;       
        // do logging
        ThreadLocalUserActivityLogger.log(FeedLoggingAction.FEED_ITEM_DELETE, getClass(), LoggingResourceable.wrap(item));

      } else {
View Full Code Here

Examples of org.olat.modules.webFeed.managers.FeedManager.releaseLock()

            feedManager.updateFeedMode(null, feed);
            makeInternalAndExternalButtons();
          }
        }
        // release the lock
        feedManager.releaseLock(lock);

        // Dispose the cmc and the podcastFormCtr.
        cmc.deactivate();
        removeAsListenerAndDispose(cmc);
        cmc = null;
View Full Code Here

Examples of org.olat.repository.handlers.RepositoryHandler.releaseLock()

        showInfo("warning.course.alreadylocked", lockResult.getOwner().getName());
      }
    }
    finally
      if((lockResult!=null && lockResult.isSuccess() && !isAlreadyLocked)) {
        typeToDownload.releaseLock(lockResult);   
        lockResult = null;
      }
    }
  }
 
View Full Code Here

Examples of org.openide.filesystems.FileLock.releaseLock()

                    ois.close();
                } catch (IOException e) {
                }
            }
            if (lock != null) {
                lock.releaseLock();
            }
        }
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.