congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DirectoryBuilderImpl.makeDefaultLockFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
makeDefaultLockFactory
method
in
org.infinispan.lucene.impl.DirectoryBuilderImpl

Best Java code snippets using org.infinispan.lucene.impl.DirectoryBuilderImpl.makeDefaultLockFactory (Showing top 3 results out of 315)

origin: org.infinispan/infinispan-lucene-v3

@Override
public Directory create() {
 if (lockFactory == null) {
   lockFactory = makeDefaultLockFactory(distLocksCache, indexName);
 }
 if (srl == null) {
   srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName);
 }
 if (LuceneVersionDetector.VERSION == 3) {
   return new DirectoryLuceneV3(metadataCache, chunksCache, indexName, lockFactory, chunkSize, srl);
 }
 else {
   Class<?>[] ctorType = new Class[]{ Cache.class, Cache.class, String.class, LockFactory.class, int.class, SegmentReadLocker.class };
   Directory d;
   try {
    d = (Directory) DirectoryBuilderImpl.class.getClassLoader()
      .loadClass("org.infinispan.lucene.impl.DirectoryLuceneV4")
      .getConstructor(ctorType)
      .newInstance(metadataCache, chunksCache, indexName, lockFactory, chunkSize, srl);
   }
   catch (Exception e) {
    throw log.failedToCreateLucene4Directory(e);
   }
   return d;
 }
}
origin: org.infinispan/infinispan-lucene-directory

@Override
public Directory create() {
 if (lockFactory == null) {
   lockFactory = makeDefaultLockFactory();
 }
 if (srl == null) {
   srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName, affinitySegmentId);
 }
 if (deleteExecutor == null) {
   deleteExecutor = new WithinThreadExecutor();
 }
 return new DirectoryLucene(metadataCache, chunksCache, distLocksCache, indexName, lockFactory, chunkSize, srl, writeFileListAsync, deleteExecutor, affinitySegmentId);
}
origin: org.infinispan/infinispan-embedded-query

@Override
public Directory create() {
 if (lockFactory == null) {
   lockFactory = makeDefaultLockFactory();
 }
 if (srl == null) {
   srl = makeDefaultSegmentReadLocker(metadataCache, chunksCache, distLocksCache, indexName, affinitySegmentId);
 }
 if (deleteExecutor == null) {
   deleteExecutor = new WithinThreadExecutor();
 }
 return new DirectoryLucene(metadataCache, chunksCache, distLocksCache, indexName, lockFactory, chunkSize, srl, writeFileListAsync, deleteExecutor, affinitySegmentId);
}
org.infinispan.lucene.implDirectoryBuilderImplmakeDefaultLockFactory

Popular methods of DirectoryBuilderImpl

  • <init>
  • checkNotNull
  • checkValidConfiguration
  • makeDefaultSegmentReadLocker
  • validateMetadataCache
  • create

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Table (org.hibernate.mapping)
    A relational table
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now