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

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


   * @param response
   */
  private void generateArchive(final String index, final HttpServletResponse response) {
    IndexLocation location = indexer.getIndexes().get(index);
    if (location instanceof LuceneSingleIndexLocation) {
      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

Related Classes of com.gentics.cr.lucene.indexer.index.LuceneSingleIndexLocation

Copyright © 2018 www.massapicom. 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.