Examples of rootRegions()


Examples of com.gemstone.gemfire.cache.Cache.rootRegions()

   */
  @Override
  public void execute(FunctionContext functionContext) {
    Cache cache = CacheFactory.getAnyInstance();
    List<String> regionNames = new ArrayList<String>();
    for (Region<?, ?> region: cache.rootRegions()) {
      regionNames.add(region.getName());
    }
   
    functionContext.getResultSender().lastResult(regionNames);
  }
View Full Code Here

Examples of com.gemstone.gemfire.cache.Cache.rootRegions()

      .create();

    assertNotNull("The GemFire Cache was not properly created and initialized!", gemfireCache);
    assertFalse("The GemFire Cache is closed!", gemfireCache.isClosed());

    Set<Region<?, ?>> rootRegions = gemfireCache.rootRegions();

    assertNotNull(rootRegions);
    assertFalse(rootRegions.isEmpty());
    assertEquals(2, rootRegions.size());
    assertNotNull(gemfireCache.getRegion("/TestRegion"));
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.