GemFire 6.6.1

Uses of Package

Packages that use com.gemstone.gemfire.cache.partition
com.gemstone.gemfire.cache Provides an implementation of distributed object caching that can leverage GemFire's distribution capabilities. 
com.gemstone.gemfire.cache.control Controls the resources used by the local GemFire Cache
com.gemstone.gemfire.cache.partition Provides classes which operate on partitioned regions. 

Classes in com.gemstone.gemfire.cache.partition used by com.gemstone.gemfire.cache
          A callback for partitioned regions, invoked when a partition region is created or any bucket in a partitioned region becomes primary

A sample implementation of this interface to colocate partition regions using a primary key without having to honor the redundancy contract for every colocate partition regions is as follows :
public class ColocatingPartitionListener implements PartitionListener, Declarable { private Cache cache; private List<String> viewRegionNames = new ArrayList<String>(); public ColocatingPartitionListener() { } public void afterPrimary(int bucketId) { for (String viewRegionName : viewRegionNames) { Region viewRegion = cache.getRegion(viewRegionName); PartitionManager.createPrimaryBucket(viewRegion, bucketId, true, true); } } public void init(Properties props) { String viewRegions = props.getProperty("viewRegions"); StringTokenizer tokenizer = new StringTokenizer(viewRegions, ","); while (tokenizer.hasMoreTokens()) { viewRegionNames.add(tokenizer.nextToken()); } } public void afterRegionCreate(Region<?

Classes in com.gemstone.gemfire.cache.partition used by com.gemstone.gemfire.cache.control
          The detailed results of rebalancing a partitioned region.

Classes in com.gemstone.gemfire.cache.partition used by com.gemstone.gemfire.cache.partition
          Describes a member that has been configured to provide storage space for a partitioned region.
          Information describing the data storage and distribution of a partitioned region.

GemFire 6.6.1

Copyright © 1997-2011 VMware, Inc. All rights reserved.