Package com.gentics.cr.lucene.indexer.index

Examples of com.gentics.cr.lucene.indexer.index.LuceneSingleIndexLocation.checkLock()


      LuceneSingleIndexLocation indexLocation = (LuceneSingleIndexLocation) location;
      File indexDirectory = new File(indexLocation.getReopenFilename()).getParentFile();
      File writeLock = null;
      boolean weWroteTheWriteLock = false;
      try {
        indexLocation.checkLock();
        if (indexDirectory.canWrite()) {
          writeLock = new File(indexDirectory, "write.lock");
          if (writeLock.createNewFile()) {
            weWroteTheWriteLock = true;
          } else {
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.