public void setResources ( ResourceSpec minResources , ResourceSpec preferredResources ) { this . minResources = checkNotNull ( minResources ) ; this . preferredResources = checkNotNull ( preferredResources ) ; }
Sets the minimum and preferred resources for the task .