
public interface ConfigurationProxy
| Modifier and Type | Method and Description |
|---|---|
ConfigurationInfo |
buildConfigurationInfo(ConfigurationState configState,
Set<ParameterPath> recentChangesNames)
Builds a ConfigurationInfo object reflecting the configuration state and
ready to be sent on the buses.
|
Set<String> |
findAvailableConfigurationsForCategory(String category) |
Set<String> |
getCategorySet() |
Map<String,String> |
getCurrentValuesForComponent(String componentName,
Set<String> categories)
Returns the current value of parameters that belong to the given category for the given configurable component
|
Map.Entry<ConfigurationState,Set<ParameterConfiguration>> |
getInitialParameterConfigurations(Map<String,String> taggedCategories)
To be invoked before startup.
|
Map<String,String> |
getTaggedCategoriesForCats(Set<String> categories) |
String |
getTagName()
the current tag name (can be null or empty)
|
boolean |
isDirty() |
Boolean |
isParameterConfigurable(String componentName,
String parameterName)
Checks if a parameter named parameterName is part of the configuration data.
|
Map<String,Properties> |
loadCategories(Map<String,String> taggedCategories)
For each pair 'category:configuration' in taggedCategories, the category is loaded
with its specified configuration, categories that are not mentioned are left untouched.
|
void |
notifyParameterChange(String componentName,
String parameterName,
String stringValue)
second part of a two phase commit.
|
void |
notifyUncheckedParameterChange(String componentName,
String parameterName,
Object Value)
notifies directly of a change without preliminary check to the configuration service.
|
void |
saveChangesForCategoriesAs(Map<String,String> taggedCategories)
Changes made in the specified categories are saved under the newly specified
name for this category, changes on parameters that belong to other categories
are left unchanged.
|
void |
saveModifications(Map<String,String> categoryProfile) |
void |
setDefaultValueForParameter(String componentName,
String parameterName,
Object val) |
void |
writeMissingDefaultConfigs() |
ConfigurationInfo buildConfigurationInfo(ConfigurationState configState, Set<ParameterPath> recentChangesNames)
configState - recentChangesNames - ConfigurationInfo objectSet<String> getCategorySet()
String getTagName()
Map.Entry<ConfigurationState,Set<ParameterConfiguration>> getInitialParameterConfigurations(Map<String,String> taggedCategories)
taggedCategories - the name of the initial configuration.Boolean isParameterConfigurable(String componentName, String parameterName)
componentName - the name of the componentparameterName - the name of the parametervoid notifyParameterChange(String componentName, String parameterName, String stringValue)
componentName - parameterName - stringValue - void notifyUncheckedParameterChange(String componentName, String parameterName, Object Value)
componentName - parameterName - Value - void saveChangesForCategoriesAs(Map<String,String> taggedCategories) throws ConfigurationServiceException
taggedCategories - a list of pairs categoryName:configurationNameConfigurationServiceException - if the configuration service is not available.Map<String,String> getCurrentValuesForComponent(String componentName, Set<String> categories)
componentName - the name of the configurable componentcategories - Map<String,Properties> loadCategories(Map<String,String> taggedCategories) throws ConfigurationServiceException
taggedCategories - a list of tagged categoriesConfigurationServiceExceptionboolean isDirty()
void setDefaultValueForParameter(String componentName, String parameterName, Object val)
void writeMissingDefaultConfigs()
Copyright © 2016 LSST. All rights reserved.