@Override
  public long getBucketSize(int bucketId) { // bytes
    if (bucketSizes == null) {
      throw new IllegalStateException(this + " has no bucketSizes");
    }
    if (bucketId < 0 || bucketId >= bucketSizes.length) {
      throw new IllegalArgumentException(
          "bucketId must be between 0 and " + (bucketSizes.length - 1));
    }
    return bucketSizes[bucketId];
  }
Implements PartitionMemberInfo. Serializable form is used to allow JMX MBeans to use this as a
remotable return type.
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/PartitionMemberInfoImpl.java