/** * A test method to get the list of all the primary bucket ids for the partitioned * region in the data Store. * */ public List getLocalPrimaryBucketsListTestOnly() { List localPrimaryList = null; if (this.dataStore != null) { localPrimaryList = this.dataStore.getLocalPrimaryBucketsListTestOnly(); } return localPrimaryList; }
/** * A test method to get the list of all the primary bucket ids for the partitioned * region in the data Store. * */ public List getLocalPrimaryBucketsListTestOnly() { List localPrimaryList = null; if (this.dataStore != null) { localPrimaryList = this.dataStore.getLocalPrimaryBucketsListTestOnly(); } return localPrimaryList; }
public static void checkPrimaryBucketsForCustomer(Integer numBuckets, Integer primaryBuckets, String customerPartitionedRegionName) { PartitionedRegion customerPartitionedregion = null; try { customerPartitionedregion = (PartitionedRegion)cache .getRegion(Region.SEPARATOR + customerPartitionedRegionName); } catch (Exception e) { fail( "validateAfterPutPartitionedRegion : failed while getting the region", e); } HashMap localBucket2RegionMap_Customer = (HashMap)customerPartitionedregion .getDataStore().getSizeLocally(); assertEquals(numBuckets.intValue(), localBucket2RegionMap_Customer.size()); List primaryBuckets_Customer = customerPartitionedregion.getDataStore() .getLocalPrimaryBucketsListTestOnly(); assertEquals(primaryBuckets.intValue(), primaryBuckets_Customer.size()); }
.getDataStore().getLocalPrimaryBucketsListTestOnly(); List primaryBuckets_Order = orderPartitionedregion .getDataStore().getLocalPrimaryBucketsListTestOnly(); List primaryBuckets_Shipment = shipmentPartitionedregion .getDataStore().getLocalPrimaryBucketsListTestOnly();
.getLocalPrimaryBucketsListTestOnly(); List primaryBuckets_Order = orderPartitionedregion.getDataStore() .getLocalPrimaryBucketsListTestOnly(); List primaryBuckets_Shipment = shipmentPartitionedregion.getDataStore() .getLocalPrimaryBucketsListTestOnly();
public static void printView() { PartitionedRegion pr = (PartitionedRegion)region; if (pr.cache != null) { ((GemFireCacheImpl)cache).getLogger().info( "Primary Bucket view of server0 " + pr.getDataStore().getLocalPrimaryBucketsListTestOnly()); ((GemFireCacheImpl)cache).getLogger().info( "Secondary Bucket view of server0 " + pr.getDataStore().getLocalNonPrimaryBucketsListTestOnly()); } }
.getDataStore().getLocalPrimaryBucketsListTestOnly(); .getDataStore().getLocalPrimaryBucketsListTestOnly(); .getDataStore().getLocalPrimaryBucketsListTestOnly();
public static void printView() { PartitionedRegion pr = (PartitionedRegion)region; if(pr.cache!=null ) { ((GemFireCacheImpl)cache).getLogger().info( "Primary Bucket view of server0 " + pr.getDataStore().getLocalPrimaryBucketsListTestOnly()); ((GemFireCacheImpl)cache).getLogger().info("Secondary Bucket view of server0 " + pr.getDataStore().getLocalNonPrimaryBucketsListTestOnly()); } }
message.put("IsPeerClient", true); } else { List<Integer> bucketIdList = pr.getDataStore().getLocalPrimaryBucketsListTestOnly(); for (Integer bucketId : bucketIdList) { BucketRegion bucketRegion;
return results; List<Integer> bucketIdList = pr.getDataStore().getLocalPrimaryBucketsListTestOnly(); resultSet = new HashSet(); for (Integer bucketId : bucketIdList) {