code: public ContainerRequest setupContainerAskForRM(int containerMemory, int containerVirtualCores, int priority, String host) {
          // setup requirements for hosts
          // using * as any host will do for the jstorm app
          // set the priority for the request
          Priority pri = Priority.newInstance(priority);
          // Set up resource type requirements
          // For now, memory and CPU are supported so we set memory and cpu requirements
          Resource capability = Resource.newInstance(containerMemory,
                  containerVirtualCores);
  
          ContainerRequest request = new ContainerRequest(capability, null, null,
                  pri);
          LOG.info("By Thrift Server Requested container  ask: " + request.toString());
          return request;
      }
docs: Setup the request that will be sent to the RM for the container ask.
  
  @return the setup ResourceRequest to be sent to RM