Examples of lockOrFail()


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

              logger.debug("Failed to create directory for data file: {}", dir);
              throw new StoreException("Failed to create directory for data file: " + dir);
            }
          }
          // try to lock directory or fail
          dirLock = locker.lockOrFail();

          logger.debug("Initializing data file...");
          new FileIO(this, valueFactory).write(syncFile, dataFile);
          logger.debug("Data file initialized");
        }
View Full Code Here

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

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

  protected QueryBuilderFactory createQueryBuilderFactory() {
    return new QueryBuilderFactory();
  }
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.