public BucketAdvisor getBucketAdvisor(int bucketId) {
    ProxyBucketRegion pbr = buckets[bucketId];
    Bucket ret = pbr.getHostedBucketRegion();
    if (ret != null) {
      return ret.getBucketAdvisor();
    } else {
      return pbr.getBucketAdvisor();
    }
  }
Returns the BucketAdvisor for the specified bucket.

@param bucketId the index of the bucket to retrieve the advisor for
@return the bucket advisor identified by bucketId
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/RegionAdvisor.java