use of org.apache.geode.management.FixedPartitionAttributesData in project geode by apache.
the class RegionMBeanCompositeDataFactory method getFixedPartitionAttributesData.
public static FixedPartitionAttributesData[] getFixedPartitionAttributesData(PartitionAttributes partAttrs) {
FixedPartitionAttributesData[] fixedPartitionAttributesTable = new FixedPartitionAttributesData[partAttrs.getFixedPartitionAttributes().size()];
Iterator<FixedPartitionAttributes> it = partAttrs.getFixedPartitionAttributes().iterator();
int j = 0;
while (it.hasNext()) {
FixedPartitionAttributes fa = it.next();
FixedPartitionAttributesData data = new FixedPartitionAttributesData(fa.getPartitionName(), fa.isPrimary(), fa.getNumBuckets());
fixedPartitionAttributesTable[j] = data;
j++;
}
return fixedPartitionAttributesTable;
}
Aggregations