public Object call() { PartitionedRegion pr = (PartitionedRegion) getCache().getRegion(regionPath[0]); PartitionedRegionDataStore ds = pr.getDataStore(); if (ds == null) { return new Integer(0); } else { return new Integer(ds.getBucketsManaged()); } } })).intValue();
public Object call() { PartitionedRegion pr = (PartitionedRegion) getCache().getRegion(regionPath); PartitionedRegionDataStore ds = pr.getDataStore(); if (ds == null) { return new Integer(0); } else { return new Integer(ds.getBucketsManaged()); } } })).intValue();
public Object call() { Cache cache = getCache(); PartitionedRegion region1 = (PartitionedRegion) cache.getRegion("region1"); while(System.currentTimeMillis() - begin < 30000) { int bucketsManaged = region1.getDataStore().getBucketsManaged(); if(bucketsManaged == numBuckets) { break; } else { try { Thread.sleep(100); } catch (InterruptedException e) { e.printStackTrace(); } } } assertEquals("Did not start managing the bucket within 30 seconds", numBuckets, region1.getDataStore().getBucketsManaged()); long elapsed = System.currentTimeMillis() - begin; return Long.valueOf(elapsed); } });
/** set fields that are only in PartitionProfile... */ public void fillInProfile(PartitionProfile profile) { // both isDataStore and numBuckets are not required for sending purposes, // but nice to have for toString debugging profile.isDataStore = getLocalMaxMemory() > 0; if (this.dataStore != null) { profile.numBuckets = this.dataStore.getBucketsManaged(); } profile.requiresNotification = this.requiresNotification; profile.localMaxMemory = getLocalMaxMemory(); profile.fixedPAttrs = this.fixedPAttrs; // shutdownAll profile.shutDownAllStatus = shutDownAllStatus; }
/** set fields that are only in PartitionProfile... */ public void fillInProfile(PartitionProfile profile) { // both isDataStore and numBuckets are not required for sending purposes, // but nice to have for toString debugging profile.isDataStore = getLocalMaxMemory() > 0; if (this.dataStore != null) { profile.numBuckets = this.dataStore.getBucketsManaged(); } profile.requiresNotification = this.requiresNotification; profile.localMaxMemory = getLocalMaxMemory(); profile.fixedPAttrs = this.fixedPAttrs; // shutdownAll profile.shutDownAllStatus = shutDownAllStatus; }
public Object call() throws Exception { Cache c = getCache(); PartitionedRegion pr = (PartitionedRegion) c.getRegion(prPrefix); assertEquals(1, pr.getDataStore().getBucketsManaged()); return Boolean.TRUE; } };
public void run() { Cache cache = getCache(); PartitionedRegion region1 = (PartitionedRegion) cache.getRegion("region1"); assertEquals(0,region1.getDataStore().getBucketsManaged()); } };
public Object call() throws Exception { int size = 0; Cache cache = getCache(); PartitionedRegion pr = (PartitionedRegion)cache .getRegion(Region.SEPARATOR + PR_PREFIX + ri.intValue()); if (pr.getDataStore() != null) { size = pr.getDataStore().getBucketsManaged(); } return new Integer(size); } };
public Object call() throws Exception { Cache c = getCache(); PartitionedRegion pr = (PartitionedRegion) c.getRegion(prPrefix); assertNotNull(pr); assertEquals(0, pr.getDataStore().getBucketsManaged()); return Boolean.TRUE; } };
partitionedregion.put(Integer.valueOf(i * totalNumBuckets), new byte[100]); assertEquals(1, dataStore.getBucketsManaged());
PartitionedRegionDataStore myDS = this.prRegion.getDataStore(); if (myDS != null && candidates.contains(moi)) { int bucketCount = myDS.getBucketsManaged(); int priCount = myDS.getNumberOfPrimaryBucketsManaged(); int localMaxMemory = this.prRegion.getLocalMaxMemory();
pr.getLocalMaxMemory() * (1024L * 1024L), size, ds.getBucketsManaged(), ds.getNumberOfPrimaryBucketsManaged(), prLoad, pr.getLocalMaxMemory() * (1024L * 1024L), size, ds.getBucketsManaged(), ds.getNumberOfPrimaryBucketsManaged());
pr.getLocalMaxMemory() * (1024L * 1024L), size, ds.getBucketsManaged(), ds.getNumberOfPrimaryBucketsManaged(), prLoad, pr.getLocalMaxMemory() * (1024L * 1024L), size, ds.getBucketsManaged(), ds.getNumberOfPrimaryBucketsManaged());
PartitionedRegionDataStore myDS = this.prRegion.getDataStore(); if (myDS != null && candidates.contains(moi)) { int bucketCount = myDS.getBucketsManaged(); int priCount = myDS.getNumberOfPrimaryBucketsManaged(); int localMaxMemory = this.prRegion.getLocalMaxMemory();
.getDataStore().getBucketsManaged(); int sizeOfPrimaryBucketsForCustomer = customerPartitionedregion .getDataStore().getNumberOfPrimaryBucketsManaged(); .getBucketsManaged(); int sizeOfPrimaryBucketsForOrder = orderPartitionedregion.getDataStore() .getNumberOfPrimaryBucketsManaged(); .getDataStore().getBucketsManaged(); int sizeOfPrimaryBucketsForShipment = shipmentPartitionedregion .getDataStore().getNumberOfPrimaryBucketsManaged();
assertEquals(getSize(ds), mbrDetails.getSize()); assertEquals(ds.getBucketsManaged(), mbrDetails.getBucketCount()); assertEquals(ds.getNumberOfPrimaryBucketsManaged(), assertEquals(getSize(ds), mbrDetails.getSize()); assertEquals(ds.getBucketsManaged(), mbrDetails.getBucketCount()); assertEquals(ds.getNumberOfPrimaryBucketsManaged(),
assertEquals(getSize(ds), mbrDetails.getSize()); assertEquals(ds.getBucketsManaged(), mbrDetails.getBucketCount()); assertEquals(ds.getNumberOfPrimaryBucketsManaged(), assertEquals(getSize(ds), mbrDetails.getSize()); assertEquals(ds.getBucketsManaged(), mbrDetails.getBucketCount()); assertEquals(ds.getNumberOfPrimaryBucketsManaged(),
assertEquals(createdBuckets, dataStore.getBucketsManaged()); assertEquals(createdBuckets/2, dataStore.getBucketsManaged());
assertEquals(0, dataStore.getBucketsManaged()); .getTotalNumBuckets() / 2 >= dataStore.getBucketsManaged());
final int localBSize = pr.getDataStore().getBucketsManaged(); getLogWriter().info( "validateBucketsDistribution() - Number of bukctes for "