private void initialize(PartitionedRegion region) {
    setNumberOfEntries(region.size());

    // If there is a data store (meaning that the PR has storage
    // in this VM), get the number of entries and heap size. Else,
    // set these to 0.
    PartitionedRegionDataStore ds = region.getDataStore();
    long heapSize = 0;
    if (ds != null) {
      heapSize = ds.currentAllocatedMemory();
    }
    setHeapSize(heapSize);
  }
Class <code>PartitionedRegionStatus</code> provides information about
<code>PartitionedRegion</code>s. This class is used by the monitoring tool.


@since GemFire 5.1
geode-core/src/main/java/org/apache/geode/internal/cache/PartitionedRegionStatus.java