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