code: public void setMaxCapacity(String queue,float maxCapacity) {
        rmConf.setFloat(
          toFullPropertyName(queue, MAX_CAPACITY_PROPERTY), maxCapacity);
    }
docs: Sets the maxCapacity of the given queue.
  
  @param queue name of the queue
  @param maxCapacity percent of the cluster for the queue.