public Map<Integer, BucketAdvisor> getAllBucketAdvisors() {
    Map<Integer, BucketAdvisor> map = new HashMap<>();
    for (ProxyBucketRegion pbr : buckets) {
      Bucket ret = pbr.getHostedBucketRegion();
      if (ret != null) {
        map.put(ret.getId(), ret.getBucketAdvisor());
      }
    }
    return map;
  }
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