congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DirectoryBuilderImpl.create
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.infinispan/infinispan-lucene-directory

@Test(expectedExceptions = CacheException.class, expectedExceptionsMessageRegExp = "Failed looking up TransactionManager. Check if any transaction manager is associated with Infinispan cache: 'lucene'")
public void testLuceneIndexLockingWithCache() throws IOException {
 final String commonIndexName = "myIndex";
 Cache cache1 = cache(0, "lucene");
 LockFactory lockFactory = makeLockFactory();
 lockFactory.obtainLock(new DirectoryBuilderImpl(cache1,cache1,cache1,commonIndexName).create(),"myLock");
}
origin: org.infinispan/infinispan-lucene-directory

@Test(expectedExceptions = CacheException.class, expectedExceptionsMessageRegExp = "Failed looking up TransactionManager: the cache is not running")
public void testLuceneIndexLockingWithStoppedCache() throws IOException {
 final String commonIndexName = "myIndex";
 Cache cache1 = cache(0, "lucene");
 cache(0, "lucene").stop();
 cache(1, "lucene").stop();
 TestingUtil.killCacheManagers(cacheManagers);
 LockFactory lockFactory = makeLockFactory();
 lockFactory.obtainLock(new DirectoryBuilderImpl(cache1,cache1,cache1,commonIndexName).create(),"myLock");
}
org.infinispan.lucene.implDirectoryBuilderImplcreate

Popular methods of DirectoryBuilderImpl

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

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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