code: public void requestResources(List<ResourceRequest> wanted)
      throws IOException {
      if (failException != null) {
        throw failException;
      }
  
      cmNotifier.addCall(
          new ClusterManagerService.requestResource_args(sessionId, wanted));
    }
docs: Request needed resources from the ClusterManager
  @param wanted the list of resources requested
  @throws IOException