public interface MutableConfigurationProvider
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the configuration provider, releasing any required resources.
|
void |
confirmPendingMutation(boolean isValid)
Confirm last logged mutation.
|
ConfigurationMutationACLPolicy |
getAclMutationPolicy()
Get the acl mutation policy for this configuration provider.
|
org.apache.hadoop.conf.Configuration |
getConfiguration()
Returns scheduler configuration cached in this provider.
|
void |
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.
|
ConfigurationMutationACLPolicy getAclMutationPolicy()
void reloadConfigurationFromStore() throws Exception
Exception
- if configuration could not be refreshed from storevoid 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 failsvoid confirmPendingMutation(boolean isValid) throws Exception
isValid
- if the last logged mutation is applied to scheduler
properly.Exception
- if confirming mutation failsorg.apache.hadoop.conf.Configuration getConfiguration()
void close() throws IOException
IOException
- on failure to closeCopyright © 2022 Apache Software Foundation. All rights reserved.