Examples of tryLock()


Examples of org.odmg.Transaction.tryLock()

            Article a = null;
            while (iter.hasNext())
            {
                a = (Article) iter.next();

                if (tx.tryLock(a, Transaction.WRITE))
                {

                    //db.makePersistent(a);
                    //System.out.println(super.getName() + " ---- Lock erhalten & warten"+ a);
                    Thread.sleep(1000);
View Full Code Here

Examples of org.openrdf.sail.helpers.DirectoryLockManager.tryLock()

        if (!dataFile.canRead()) {
          logger.error("Data file is not readable: {}", dataFile);
          throw new StoreException("Can't read data file: " + dataFile);
        }
        // try to create a lock for later writing
        dirLock = locker.tryLock();
        if (dirLock == null) {
          logger.warn("Failed to lock directory: {}", dataDir);
        }
        // Don't try to read empty files: this will result in an
        // IOException, and the file doesn't contain any data anyway.
View Full Code Here

Examples of org.openrdf.sail.rdbms.util.DatabaseLockManager.tryLock()

    throws StoreException
  {
    DatabaseLockManager manager;
    manager = new DatabaseLockManager(ds, user, password);
    if (manager.isDebugEnabled()) {
      return manager.tryLock();
    }
    return manager.lockOrFail();
  }

  protected QueryBuilderFactory createQueryBuilderFactory() {
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.