Search in sources :

Example 1 with FixedPartitionAttributesData

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;
}
Also used : FixedPartitionAttributes(org.apache.geode.cache.FixedPartitionAttributes) FixedPartitionAttributesData(org.apache.geode.management.FixedPartitionAttributesData)

Aggregations

FixedPartitionAttributes (org.apache.geode.cache.FixedPartitionAttributes)1 FixedPartitionAttributesData (org.apache.geode.management.FixedPartitionAttributesData)1