public class AmbariServerConfigurationHandler extends Object
Modifier and Type | Method and Description |
---|---|
Map<String,RootServiceComponentConfiguration> |
getComponentConfigurations(String categoryName)
Retrieve the requested component configurations.
|
Map<String,String> |
getConfigurationProperties(String categoryName)
Get the properties associated with a configuration category
|
Map<String,Map<String,String>> |
getConfigurations() |
protected Set<String> |
getEnabledServices(String categoryName,
String manageServicesConfigurationPropertyName,
String enabledServicesPropertyName) |
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.
|
void |
removeComponentConfiguration(String categoryName)
Delete the requested configuration.
|
void |
updateComponentCategory(String categoryName,
Map<String,String> properties,
boolean removePropertiesIfNotSpecified)
Set or update a configuration category with the specified properties.
|
public Map<String,RootServiceComponentConfiguration> getComponentConfigurations(String categoryName)
categoryName
- the category name (or null
for all)public void removeComponentConfiguration(String categoryName)
categoryName
- the category namepublic 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.
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 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.
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 requestpublic Map<String,String> getConfigurationProperties(String categoryName)
categoryName
- the name of the requested categoryCopyright © 2022 Apache Software Foundation. All rights reserved.