Ejemplo n.º 1
0
  /**
   * Enables long stabilty runs using replication to be done.
   *
   * <p>This test has been run in a profile for 15 hours without any observed issues.
   *
   * @throws InterruptedException
   */
  public void manualStabilityTest() throws InterruptedException {
    forceVMGrowth();

    ManagementService.registerMBeans(manager3, createMBeanServer(), true, true, true, true, true);
    while (true) {
      testBigPutsProgagatesAsynchronous();
    }
  }
 /**
  * @see
  *     com.dianping.cache.core.InitialConfiguration#init(com.dianping.cache.core.CacheClientConfiguration)
  */
 @Override
 public void init(CacheClientConfiguration config) {
   if (config instanceof EhcacheConfiguration) {
     manager = ((EhcacheConfiguration) config).buildEhcacheManager();
   }
   if (manager == null) {
     manager = CacheManager.create();
   }
   MBeanServer server = ManagementFactory.getPlatformMBeanServer();
   ManagementService.registerMBeans(manager, server, true, true, true, true);
 }