public interface MutableConfigurationProvider
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.conf.Configuration | applyChanges(org.apache.hadoop.conf.Configuration oldConfiguration,
            org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate)Apply the changes on top of the actual configuration. | 
| void | close()Closes the configuration provider, releasing any required resources. | 
| void | confirmPendingMutation(YarnConfigurationStore.LogMutation pendingMutation,
                      boolean isValid)Confirm last logged mutation. | 
| void | formatConfigurationInStore(org.apache.hadoop.conf.Configuration conf) | 
| ConfigurationMutationACLPolicy | getAclMutationPolicy()Get the acl mutation policy for this configuration provider. | 
| org.apache.hadoop.conf.Configuration | getConfiguration()Returns scheduler configuration cached in this provider. | 
| long | getConfigVersion()Get the last updated scheduler config version. | 
| YarnConfigurationStore.LogMutation | logAndApplyMutation(org.apache.hadoop.security.UserGroupInformation user,
                   org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate)Log user's requested configuration mutation, and applies it in-memory. | 
| void | reloadConfigurationFromStore()Called when a new ResourceManager is starting/becomes active. | 
| void | revertToOldConfig(org.apache.hadoop.conf.Configuration config) | 
ConfigurationMutationACLPolicy getAclMutationPolicy()
void reloadConfigurationFromStore()
                           throws Exception
Exception - if configuration could not be refreshed from storeYarnConfigurationStore.LogMutation logAndApplyMutation(org.apache.hadoop.security.UserGroupInformation user, org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate) throws Exception
user - User who requested the changeconfUpdate - User's requested configuration changeException - if logging the mutation failsorg.apache.hadoop.conf.Configuration applyChanges(org.apache.hadoop.conf.Configuration oldConfiguration,
                                                  org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo confUpdate)
                                           throws IOException
oldConfiguration - actual configurationconfUpdate - changelistIOException - if the merge failedvoid confirmPendingMutation(YarnConfigurationStore.LogMutation pendingMutation, boolean isValid) throws Exception
pendingMutation - the log mutation to applyisValid - if the last logged mutation is applied to scheduler
                properly.Exception - if confirming mutation failsorg.apache.hadoop.conf.Configuration getConfiguration()
long getConfigVersion()
               throws Exception
Exceptionvoid formatConfigurationInStore(org.apache.hadoop.conf.Configuration conf)
                         throws Exception
Exceptionvoid revertToOldConfig(org.apache.hadoop.conf.Configuration config)
                throws Exception
Exceptionvoid close()
    throws IOException
IOException - on failure to closeCopyright © 2008–2023 Apache Software Foundation. All rights reserved.