public class AmbariServerLDAPConfigurationHandler extends AmbariServerConfigurationHandler
Modifier and Type | Method and Description |
---|---|
Set<String> |
getLDAPEnabledServices()
Gets the set of services for which the user declared Ambari to enable LDAP integration.
|
protected String |
getServiceVersionNote() |
org.apache.ambari.server.controller.internal.RootServiceComponentConfigurationHandler.OperationResult |
performOperation(String categoryName,
Map<String,String> properties,
boolean mergeExistingProperties,
String operation,
Map<String,Object> operationParameters)
Preform some operation on the set of data for a category.
|
protected void |
processCluster(Cluster cluster,
StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType)
Build the stack advisor request, call the stack advisor, then automatically
handle the recommendations.
|
protected void |
processClusters(StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType)
Build the stack advisor request, call the stack advisor, then automatically
handle the recommendations on all clusters that managed by Ambari.
|
void |
updateComponentCategory(String categoryName,
Map<String,String> properties,
boolean removePropertiesIfNotSpecified)
Set or update a configuration category with the specified properties.
|
getComponentConfigurations, getConfigurationProperties, getConfigurations, getEnabledServices, removeComponentConfiguration
public void updateComponentCategory(String categoryName, Map<String,String> properties, boolean removePropertiesIfNotSpecified) throws org.apache.ambari.server.AmbariException
If removePropertiesIfNotSpecified
is true
, the persisted category is to include only the specified properties.
If removePropertiesIfNotSpecified
is false
, the persisted category is to include the union of the existing and specified properties.
In any case, existing property values will be overwritten by the one specified in the property map.
updateComponentCategory
in class AmbariServerConfigurationHandler
categoryName
- the category nameproperties
- a map of properties to setremovePropertiesIfNotSpecified
- true
to ensure the set of properties are only those that have be explicitly specified;
false
to update the set of existing properties with the specified set of properties, adding missing properties but not removing any propertiesorg.apache.ambari.server.AmbariException
- in case an error occurred while updating category's propertiespublic Set<String> getLDAPEnabledServices()
If Ambari is not managing LDAP integration configuration for services the set of names will be empty.
public org.apache.ambari.server.controller.internal.RootServiceComponentConfigurationHandler.OperationResult performOperation(String categoryName, Map<String,String> properties, boolean mergeExistingProperties, String operation, Map<String,Object> operationParameters) throws SystemException
If mergeExistingProperties
is false
, the operation is to include the union of the existing and specified properties.
If mergeExistingProperties
is false
, the operation is to include only the specified properties.
performOperation
in class AmbariServerConfigurationHandler
categoryName
- the category nameproperties
- a map of properties to setmergeExistingProperties
- true
to use the the set of existing properties along with the specified set of properties;
false
to use set of specified properties onlyoperation
- the operation to performoperationParameters
- parameters to supply the name operationOperationResult
SystemException
- if an error occurs while handling the requestprotected String getServiceVersionNote()
protected void processClusters(StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType)
stackAdvisorRequestType
- the stack advisor request typeprotected void processCluster(Cluster cluster, StackAdvisorRequest.StackAdvisorRequestType stackAdvisorRequestType) throws org.apache.ambari.server.AmbariException, StackAdvisorException
Any recommendation coming back from the Stack/service advisor is expected to be only related configurations of the given request type (LDAP/SSO)
If there are no changes to the current configurations, no new configuration versions will be created.
cluster
- the cluster to processstackAdvisorRequestType
- the stack advisor request typeorg.apache.ambari.server.AmbariException
StackAdvisorException
Copyright © 2022 Apache Software Foundation. All rights reserved.