Examples of InfinispanDirectory


Examples of org.infinispan.lucene.InfinispanDirectory

    log.debug( "Starting InfinispanDirectory" );
    cacheManager.startCaches( metadataCacheName, dataCacheName, lockingCacheName );
    Cache<?,?> metadataCache = cacheManager.getCache( metadataCacheName );
    Cache<?,?> dataCache = cacheManager.getCache( dataCacheName );
    Cache<?,?> lockingCache = cacheManager.getCache( lockingCacheName );
    directory = new InfinispanDirectory( metadataCache, dataCache, lockingCache, directoryProviderName, chunkSize );
    DirectoryProviderHelper.initializeIndexIfNeeded( directory );
    log.debugf( "Initialized Infinispan index: '%s'", directoryProviderName );
  }
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

    log.debug( "Starting InfinispanDirectory" );
    cacheManager.startCaches( metadataCacheName, dataCacheName, lockingCacheName );
    Cache<?,?> metadataCache = cacheManager.getCache( metadataCacheName );
    Cache<?,?> dataCache = cacheManager.getCache( dataCacheName );
    Cache<?,?> lockingCache = cacheManager.getCache( lockingCacheName );
    directory = new InfinispanDirectory( metadataCache, dataCache, lockingCache, directoryProviderName, chunkSize );
    DirectoryProviderHelper.initializeIndexIfNeeded( directory );
    log.debugf( "Initialized Infinispan index: '%s'", directoryProviderName );
  }
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

   public static void main(String[] args) throws IOException {
      DefaultCacheManager cacheManager = new DefaultCacheManager("config-samples/lucene-demo-cache-config.xml");
      cacheManager.start();
      try {
         Cache cache = cacheManager.getCache();
         InfinispanDirectory directory = new InfinispanDirectory(cache);
         DemoDriver driver = new DemoDriver(directory);
         driver.run();
      }
      finally {
         cacheManager.stop();
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

   public void init() throws IOException {
      cacheManager1 = TestCacheManagerFactory.fromXml("config-samples/lucene-demo-cache-config.xml");
      cacheManager1.start();
      cache1 = cacheManager1.getCache();
      cache1.clear();
      directoryNodeOne = new InfinispanDirectory(cache1);
      cacheManager2 = TestCacheManagerFactory.fromXml("config-samples/lucene-demo-cache-config.xml");
      cacheManager2.start();
      cache2 = cacheManager2.getCache();
      cache2.clear();
      directoryNodeTwo = new InfinispanDirectory(cache2);
   }
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

    log.debug( "Starting InfinispanDirectory" );
    cacheManager = context.requestService( CacheManagerServiceProvider.class );
    Cache metadataCache = cacheManager.getCache( metadataCacheName );
    Cache dataCache = cacheManager.getCache( dataCacheName );
    Cache lockingCache = cacheManager.getCache( lockingCacheName );
    directory = new InfinispanDirectory( metadataCache, dataCache, lockingCache, directoryProviderName, chunkSize );
    DirectoryProviderHelper.initializeIndexIfNeeded( directory );
    log.debugf( "Initialized Infinispan index: '%s'", directoryProviderName );
  }
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

      finally {
         directory.close();
      }
      EmbeddedCacheManager cacheManager = initializeInfinispan(rootDir, indexName);
      try {
         directory = new InfinispanDirectory(cacheManager.getCache(), indexName);
         try {
            verifyOnDirectory(directory, indexName, termsAdded, inverted);
         }
         finally {
            directory.close();
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

      }
   }

   @Test
   void testDirectoryUnstableCluster() throws IOException {
      InfinispanDirectory masterDirectory = new InfinispanDirectory(writingNode.getCache(), INDEX_NAME);
      SharedState sharedIndexState = IndexReadingStressTest.fillDirectory(masterDirectory, INITIAL_INDEX_TERMS);

      ExecutorService executor = Executors.newFixedThreadPool(READERS + 1);
      try {
         executor.execute(new ConstantWritingThread(masterDirectory, sharedIndexState));
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

   @Test
   public void stressTestOnStore() throws InterruptedException, IOException {
      cache = cacheManager.getCache();
      assert cache!=null;
      InfinispanDirectory dir = new InfinispanDirectory(cache, indexName);
      PerformanceCompareStressTest.stressTestDirectory(dir, "InfinispanClusteredWith-Store");
      DirectoryIntegrityCheck.verifyDirectoryStructure(cache, indexName, true);
   }
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

   @Test
   public void profileTestInfinispanDirectory() throws InterruptedException, IOException {
      // these defaults are not for performance settings but meant for problem detection:
      Cache cache = cacheFactory.createClusteredCache();
      InfinispanDirectory dir = new InfinispanDirectory(cache, "iname");
      testDirectory(dir, "InfinispanClustered");
   }
View Full Code Here

Examples of org.infinispan.lucene.InfinispanDirectory

   @Test
   public void profileInfinispanLocalDirectory() throws InterruptedException, IOException {
      CacheContainer cacheManager = CacheTestSupport.createLocalCacheManager();
      try {
         Cache cache = cacheManager.getCache();
         InfinispanDirectory dir = new InfinispanDirectory(cache, "iname");
         testDirectory(dir, "InfinispanLocal");
      } finally {
         cacheManager.stop();
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.