Package org.openrdf.sail.helpers

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

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.