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

How to use
org.infinispan.lucene.impl.DirectoryBuilderImpl
constructor

Best Java code snippets using org.infinispan.lucene.impl.DirectoryBuilderImpl.<init> (Showing top 5 results out of 315)

origin: org.infinispan/infinispan-lucene-v3

/**
 * Starting point to create a Directory instance.
 *
 * @param metadataCache contains the metadata of stored elements
 * @param chunksCache cache containing the bulk of the index; this is the larger part of data
 * @param distLocksCache cache to store locks; should be replicated and not using a persistent CacheStore
 * @param indexName identifies the index; you can store different indexes in the same set of caches using different identifiers
 */
public static BuildContext newDirectoryInstance(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName) {
  return new DirectoryBuilderImpl(metadataCache, chunksCache, distLocksCache, indexName);
}
origin: org.infinispan/infinispan-embedded-query

/**
* Starting point to create a Directory instance.
*
* @param metadataCache  contains the metadata of stored elements
* @param chunksCache    cache containing the bulk of the index; this is the larger part of data
* @param distLocksCache cache to store locks; should be replicated and not using a persistent CacheStore
* @param indexName      identifies the index; you can store different indexes in the same set of caches using
*                       different identifiers
*/
public static BuildContext newDirectoryInstance(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName) {
 validateIndexCaches(indexName, metadataCache, chunksCache, distLocksCache);
 return new DirectoryBuilderImpl(metadataCache, chunksCache, distLocksCache, indexName);
}
origin: org.infinispan/infinispan-lucene-directory

/**
* Starting point to create a Directory instance.
*
* @param metadataCache  contains the metadata of stored elements
* @param chunksCache    cache containing the bulk of the index; this is the larger part of data
* @param distLocksCache cache to store locks; should be replicated and not using a persistent CacheStore
* @param indexName      identifies the index; you can store different indexes in the same set of caches using
*                       different identifiers
*/
public static BuildContext newDirectoryInstance(Cache<?, ?> metadataCache, Cache<?, ?> chunksCache, Cache<?, ?> distLocksCache, String indexName) {
 validateIndexCaches(indexName, metadataCache, chunksCache, distLocksCache);
 return new DirectoryBuilderImpl(metadataCache, chunksCache, distLocksCache, indexName);
}
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.implDirectoryBuilderImpl<init>

Popular methods of DirectoryBuilderImpl

  • checkNotNull
  • checkValidConfiguration
  • makeDefaultLockFactory
  • makeDefaultSegmentReadLocker
  • validateMetadataCache
  • create

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 15 Vim Plugins
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