Package org.apache.lucene.store

Examples of org.apache.lucene.store.NoLockFactory


    }
    else if ( "single".equals( lockFactoryName ) ) {
      return new SingleInstanceLockFactory();
    }
    else if ( "none".equals( lockFactoryName ) ) {
      return new NoLockFactory();
    }
    else {
      LockFactoryFactory lockFactoryFactory = PluginLoader.instanceFromName( LockFactoryFactory.class,
            lockFactoryName, DirectoryProviderHelper.class, "locking_strategy" );
      return lockFactoryFactory.createLockFactory( indexDir, dirConfiguration );
View Full Code Here


    }
    else if ( "single".equals( lockFactoryName ) ) {
      return new SingleInstanceLockFactory();
    }
    else if ( "none".equals( lockFactoryName ) ) {
      return new NoLockFactory();
    }
    else {
      LockFactoryFactory lockFactoryFactory = ClassLoaderHelper.instanceFromName(
          LockFactoryFactory.class,
          lockFactoryName, DirectoryProviderHelper.class, LOCKING_STRATEGY_PROP_NAME
View Full Code Here

    TableDescriptor descriptor = _blurTask.getTableDescriptor();

    Path directoryPath = _blurTask.getDirectoryPath(context);
    remove(directoryPath);

    NoLockFactory lockFactory = NoLockFactory.getNoLockFactory();

    Directory destDirectory = getDestDirectory(context.getConfiguration(), descriptor, directoryPath);
    destDirectory.setLockFactory(lockFactory);

    boolean optimize = _blurTask.getOptimize();
View Full Code Here

    switch (_blurTask.getIndexingType()) {
    case UPDATE:
      Path directoryPath = _blurTask.getDirectoryPath(context);
      _directory = getDestDirectory(context.getConfiguration(), descriptor, directoryPath);

      NoLockFactory lockFactory = NoLockFactory.getNoLockFactory();
      _directory.setLockFactory(lockFactory);
      return;
    case REBUILD:
      File dir = new File(System.getProperty("java.io.tmpdir"));
      File path = new File(dir, "index");
View Full Code Here

    public abstract FSDirectory fsDirectory();

    protected LockFactory buildLockFactory() throws IOException {
        String fsLock = componentSettings.get("fs_lock", "native");
        LockFactory lockFactory = new NoLockFactory();
        if (fsLock.equals("native")) {
            // TODO LUCENE MONITOR: this is not needed in next Lucene version
            lockFactory = new NativeFSLockFactory();
        } else if (fsLock.equals("simple")) {
            lockFactory = new SimpleFSLockFactory();
View Full Code Here

    }
    else if ( "single".equals( lockFactoryName ) ) {
      return new SingleInstanceLockFactory();
    }
    else if ( "none".equals( lockFactoryName ) ) {
      return new NoLockFactory();
    }
    else {
      LockFactoryFactory lockFactoryFactory = ClassLoaderHelper.instanceFromName( LockFactoryFactory.class,
            lockFactoryName, DirectoryProviderHelper.class, "locking_strategy" );
      return lockFactoryFactory.createLockFactory( indexDir, dirConfiguration );
View Full Code Here

    }
    else if ( "single".equals( lockFactoryName ) ) {
      return new SingleInstanceLockFactory();
    }
    else if ( "none".equals( lockFactoryName ) ) {
      return new NoLockFactory();
    }
    else {
      LockFactoryFactory lockFactoryFactory = ClassLoaderHelper.instanceFromName(
          LockFactoryFactory.class,
          lockFactoryName, DirectoryProviderHelper.class, LOCKING_STRATEGY_PROP_NAME
View Full Code Here

    }
    else if ( "single".equals( lockFactoryName ) ) {
      return new SingleInstanceLockFactory();
    }
    else if ( "none".equals( lockFactoryName ) ) {
      return new NoLockFactory();
    }
    else {
      LockFactoryFactory lockFactoryFactory = PluginLoader.instanceFromName( LockFactoryFactory.class,
            lockFactoryName, DirectoryProviderHelper.class, "locking_strategy" );
      return lockFactoryFactory.createLockFactory( indexDir, dirConfiguration );
View Full Code Here

    }
    else if ( "single".equals( lockFactoryName ) ) {
      return new SingleInstanceLockFactory();
    }
    else if ( "none".equals( lockFactoryName ) ) {
      return new NoLockFactory();
    }
    else {
      LockFactoryFactory lockFactoryFactory;
      try {
        Class lockFactoryClass = ReflectHelper.classForName( lockFactoryName, dirConfiguration.getClass() );
View Full Code Here

        // ignore this one, throw the original one
      }
      throw e;
    }

    lockFactory = new NoLockFactory();
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.store.NoLockFactory

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.