public interface ResourceProfilesManager
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.api.records.Resource | getDefaultProfile()Get default supported resource profile. | 
| org.apache.hadoop.yarn.api.records.Resource | getMaximumProfile()Get maximum supported resource profile. | 
| org.apache.hadoop.yarn.api.records.Resource | getMinimumProfile()Get minimum supported resource profile. | 
| org.apache.hadoop.yarn.api.records.Resource | getProfile(String profile)Get the resource capability associated with given profile name. | 
| Map<String,org.apache.hadoop.yarn.api.records.Resource> | getResourceProfiles()Get all supported resource profiles. | 
| void | init(org.apache.hadoop.conf.Configuration config)Method to handle all initialization steps for ResourceProfilesManager. | 
| void | reloadProfiles()Reload profiles based on updated configuration. | 
void init(org.apache.hadoop.conf.Configuration config) throws IOException
config - Configuration objectIOException - when invalid resource profile names are loadedorg.apache.hadoop.yarn.api.records.Resource getProfile(String profile) throws org.apache.hadoop.yarn.exceptions.YarnException
profile - name of resource profileorg.apache.hadoop.yarn.exceptions.YarnException - when any invalid profile name or feature is disabledMap<String,org.apache.hadoop.yarn.api.records.Resource> getResourceProfiles() throws org.apache.hadoop.yarn.exceptions.YARNFeatureNotEnabledException
org.apache.hadoop.yarn.exceptions.YARNFeatureNotEnabledException - when feature is disabledvoid reloadProfiles()
             throws IOException
IOException - when invalid resource profile names are loadedorg.apache.hadoop.yarn.api.records.Resource getDefaultProfile()
                                                       throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException - when any invalid profile name or feature is disabledorg.apache.hadoop.yarn.api.records.Resource getMinimumProfile()
                                                       throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException - when any invalid profile name or feature is disabledorg.apache.hadoop.yarn.api.records.Resource getMaximumProfile()
                                                       throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException - when any invalid profile name or feature is disabledCopyright © 2008–2023 Apache Software Foundation. All rights reserved.