code: public Map<PoolInfo, PoolInfoMetrics> getPoolInfoMetrics(ResourceType type) {
      return schedulersForTypes.get(type).getPoolInfoMetrics();
    }
docs: Get an unmodifiable snapshot of the mapping from pool info to associated
  metrics.
  
  @param type Type of resource.
  @return Unmodifiable snapshot of mapping from pool info to metrics