GemFire 6.5.1.2

Uses of Package
com.gemstone.gemfire.cache.partition

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
PartitionListener
          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 honour 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
PartitionRebalanceInfo
          The detailed results of rebalancing a partitioned region.
 

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


GemFire 6.5.1.2

Copyright © 2002-2010 GemStone Systems, Inc. All Rights Reserved.