Package org.infinispan.manager

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


            defaultConfig.fluent().transaction().transactionSynchronizationRegistryLookup(
                new TransactionSynchronizationRegistryProvider(transactionSynchronizationRegistry));
        }

        EmbeddedCacheManager manager = new DefaultCacheManager(global, defaultConfig, false);
        manager.addListener(this);
        // Add named configurations
        for (Map.Entry<String, Configuration> entry: this.configuration.getConfigurations().entrySet()) {
            Configuration overrides = entry.getValue();
            Configuration configuration = defaults.getDefaultConfiguration(overrides.getCacheMode()).clone();
            configuration.applyOverrides(overrides);
View Full Code Here


        this.sessionCache.addListener(this);

        if (this.jvmRouteHandler != null) {
            EmbeddedCacheManager container = this.sessionCache.getCacheManager();

            container.addListener(this.jvmRouteHandler);

            String jvmRoute = this.manager.getJvmRoute();

            if (jvmRoute != null) {
                this.jvmRouteHandler.getCache().putIfAbsent(container.getAddress(), jvmRoute);
View Full Code Here

     
      if (this.sessionCache.getConfiguration().getCacheMode().isDistributed())
      {
         EmbeddedCacheManager container = (EmbeddedCacheManager) this.sessionCache.getCacheManager();
        
         container.addListener(this);
        
         String jvmRoute = this.manager.getJvmRoute();
        
         if (jvmRoute != null)
         {
View Full Code Here

               context.reset();
            }
           
            debug("Started lock manager for \"%s\" container", containerName);
           
            container.addListener(entry);
           
            lockManagers.put(containerName, entry);
         }
        
         String cacheName = cache.getName();
View Full Code Here

        this.sessionCache.addListener(this);

        if (this.jvmRouteHandler != null) {
            EmbeddedCacheManager container = this.sessionCache.getCacheManager();

            container.addListener(this.jvmRouteHandler);

            String jvmRoute = this.manager.getJvmRoute();

            if (jvmRoute != null) {
                this.jvmRouteHandler.getCache().putIfAbsent(container.getAddress(), jvmRoute);
View Full Code Here

     
      if (this.sessionCache.getConfiguration().getCacheMode().isDistributed())
      {
         EmbeddedCacheManager container = (EmbeddedCacheManager) this.sessionCache.getCacheManager();
        
         container.addListener(this);
        
         String jvmRoute = this.manager.getJvmRoute();
        
         if (jvmRoute != null)
         {
View Full Code Here

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

     
      if (this.viewChangeListener != null)
      {
         EmbeddedCacheManager container = (EmbeddedCacheManager) this.sessionCache.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(props, componentRegistry, indexName, localBackendFactory, lockControl);
         backend.initialize();
         embeddedCacheManager.addListener(backend);
         return backend;
      }
   }

   @Override
View Full Code Here

     
      if (this.cache.getConfiguration().getCacheMode().isDistributed())
      {
         EmbeddedCacheManager container = (EmbeddedCacheManager) this.cache.getCacheManager();
        
         container.addListener(this);
        
         this.getJvmRouteCache().putIfAbsent(container.getAddress(), this.manager.getJvmRoute());
      }
   }
  
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.