Package org.infinispan.manager

Examples of org.infinispan.manager.EmbeddedCacheManager.addListener()


                entry = new LockManagerEntry(transport.getChannel());

                debug("Started lock manager for \"%s\" container", containerName);

                container.addListener(entry);

                lockManagers.put(containerName, entry);
            }

            String cacheName = cache.getName();
View Full Code Here


   public void testViewChange() throws Exception {
      EmbeddedCacheManager cmA = TestCacheManagerFactory.createClusteredCacheManager();
      cmA.getCache();
      CountDownLatch barrier = new CountDownLatch(1);
      GetCacheManagerCheckListener listener = new GetCacheManagerCheckListener(barrier);
      cmA.addListener(listener);
      CacheContainer cmB = TestCacheManagerFactory.createClusteredCacheManager();
      cmB.getCache();
      try {
         barrier.await();
         assert listener.cacheContainer != null;
View Full Code Here

  
   private void start(CacheContainerRegistryEntry entry)
   {
      EmbeddedCacheManager container = entry.getContainer();
      container.start();
      container.addListener(this.factory);
     
      String jndiName = entry.getJndiName();
     
      if (jndiName != null)
      {
View Full Code Here

      {
         Cache<Address, String> jvmRouteCache = getJvmRouteCache(this.sessionCache.getCacheManager(), this.manager);
        
         EmbeddedCacheManager container = (EmbeddedCacheManager) jvmRouteCache.getCacheManager();
        
         container.addListener(this.viewChangeListener);
        
         String jvmRoute = this.manager.getJvmRoute();
        
         if (jvmRoute != null)
         {
View Full Code Here

         EmbeddedCacheManager embeddedCacheManager = cacheManagerService.getEmbeddedCacheManager();
         TransactionManager transactionManager = componentRegistry.getComponent(TransactionManager.class);
         IndexLockController lockControl = new IndexManagerBasedLockController(indexManager, transactionManager);
         ClusteredSwitchingBackend backend = new ClusteredSwitchingBackend(componentRegistry, indexName, localBackendFactory, lockControl);
         backend.initialize();
         embeddedCacheManager.addListener(backend);
         return backend;
      }
   }

   @Override
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.