Search in sources :

Example 1 with RegionStatus

use of org.apache.geode.internal.cache.RegionStatus in project geode by apache.

the class GemFireMemberStatus method initializeRegionSizes.

protected void initializeRegionSizes() {
    Iterator rootRegions = cache.rootRegions().iterator();
    while (rootRegions.hasNext()) {
        LocalRegion rootRegion = (LocalRegion) rootRegions.next();
        if (!(rootRegion instanceof HARegion)) {
            RegionStatus rootRegionStatus = rootRegion instanceof PartitionedRegion ? new PartitionedRegionStatus((PartitionedRegion) rootRegion) : new RegionStatus(rootRegion);
            putRegionStatus(rootRegion.getFullPath(), rootRegionStatus);
            Iterator subRegions = rootRegion.subregions(true).iterator();
            while (subRegions.hasNext()) {
                LocalRegion subRegion = (LocalRegion) subRegions.next();
                RegionStatus subRegionStatus = subRegion instanceof PartitionedRegion ? new PartitionedRegionStatus((PartitionedRegion) subRegion) : new RegionStatus(subRegion);
                putRegionStatus(subRegion.getFullPath(), subRegionStatus);
            }
        }
    }
}
Also used : PartitionedRegionStatus(org.apache.geode.internal.cache.PartitionedRegionStatus) RegionStatus(org.apache.geode.internal.cache.RegionStatus) PartitionedRegionStatus(org.apache.geode.internal.cache.PartitionedRegionStatus) PartitionedRegion(org.apache.geode.internal.cache.PartitionedRegion) Iterator(java.util.Iterator) LocalRegion(org.apache.geode.internal.cache.LocalRegion) HARegion(org.apache.geode.internal.cache.HARegion)

Aggregations

Iterator (java.util.Iterator)1 HARegion (org.apache.geode.internal.cache.HARegion)1 LocalRegion (org.apache.geode.internal.cache.LocalRegion)1 PartitionedRegion (org.apache.geode.internal.cache.PartitionedRegion)1 PartitionedRegionStatus (org.apache.geode.internal.cache.PartitionedRegionStatus)1 RegionStatus (org.apache.geode.internal.cache.RegionStatus)1