ResourceProfilesManagerImplpublic interface ResourceProfilesManager
| Modifier and Type | Method | 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(java.lang.String profile) |
Get the resource capability associated with given profile name.
|
java.util.Map<java.lang.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 java.io.IOException
config - Configuration objectjava.io.IOException - when invalid resource profile names are loadedorg.apache.hadoop.yarn.api.records.Resource getProfile(java.lang.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 disabledjava.util.Map<java.lang.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 java.io.IOException
java.io.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–2025 Apache Software Foundation. All rights reserved.