Examples of LockedIndexException


Examples of com.gentics.cr.lucene.indexer.index.LockedIndexException

        if (indexDirectory.canWrite()) {
          writeLock = new File(indexDirectory, "write.lock");
          if (writeLock.createNewFile()) {
            weWroteTheWriteLock = true;
          } else {
            throw new LockedIndexException(
                new Exception("the write lock file already exists in the index."));
          }
          //set to read only so the index jobs will not delete it.
          writeLock.setReadOnly();
          response.setContentType("application/x-compressed, application/x-tar");
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.