Package org.infinispan.manager

Examples of org.infinispan.manager.DefaultCacheManager.stop()


         @Override
         public void stop()
         {
            sessionContainer.stop();
            jvmRouteContainer.stop();
         }

         @Override
         public void addListener(Object listener)
         {
View Full Code Here


               ConfigurationBuilder builder = holder.newConfigurationBuilder(cacheName);
               builder.read(manager.getCacheConfiguration(cacheName));
            }

            // 5. Discard existing cache manager and create a brand new one
            manager.stop();
            manager = new DefaultCacheManager(holder, false);
         }

         manager.start();
         return manager;
View Full Code Here

   
    printCacheEntities(cache);
   
    cache.stop();
   
    cacheManager.stop();
  }
 
  private static void printCacheEntities(Cache<Object, Object> cache) {
    for(Entry<Object, Object> entry : cache.entrySet()){
      log(entry.getKey() + " -> " + entry.getValue());
View Full Code Here

    user.setUsername("rtsang");
    user.setFirstName("Ray");
    user.setLastName("Tsang");
    userCache.put(user.getUsername(), user);
    userCache.stop();
    cacheManager.stop();
  }

  protected void validateConfig(Cache<VehicleId, Vehicle> vehicleCache) {
     StoreConfiguration config = vehicleCache.getCacheConfiguration().persistence().stores().get(0);
    
View Full Code Here

    v.setId(new VehicleId("NC", "123456"));
    v.setColor("BLUE");
    vehicleCache.put(v.getId(), v);

    vehicleCache.stop();
    cacheManager.stop();
  }
 
}
View Full Code Here

    cacheManager.start();
    Cache<String, String> cache = cacheManager.getCache("testCache");
   
    cache.put("hello", "there");
    cache.stop();
    cacheManager.stop();
  }

  public void testLegacyJavaConfig() {
    GlobalConfiguration globalConfig = new GlobalConfigurationBuilder()
        .globalJmxStatistics().transport().defaultTransport().build();
View Full Code Here

      cacheManager.start();
      Cache<String, String> cache = cacheManager.getCache("testCache");
     
      cache.put("hello", "there legacy java");
    cache.stop();
    cacheManager.stop();
  }

  public void textXmlConfigLegacy() throws IOException {
    EmbeddedCacheManager cacheManager = new DefaultCacheManager(
        "config/leveldb-config-legacy.xml");
View Full Code Here

        "config/leveldb-config-legacy.xml");
    Cache<String, String> cache = cacheManager.getCache("testCache");
   
    cache.put("hello", "there legacy xml");
      cache.stop();
      cacheManager.stop();
     
      TestingUtil.recursiveFileRemove("/tmp/leveldb/legacy");
  }
 
  public void testXmlConfig52() throws IOException {
View Full Code Here

   
    Cache<String, String> cache = cacheManager.getCache("testCache");
   
    cache.put("hello", "there 52 xml");
      cache.stop();
    cacheManager.stop();
   
    TestingUtil.recursiveFileRemove("/tmp/leveldb/52");
  }
 
}
View Full Code Here

         InfinispanDirectory directory = new InfinispanDirectory(cache);
         DemoDriver driver = new DemoDriver(directory);
         driver.run();
      }
      finally {
         cacheManager.stop();
      }
   }

   private void doQuery(Scanner scanner) throws IOException {
      scanner.nextLine();
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.