public interface ConfigurationProxy
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.bus.data.ConfigurationInfo |
buildConfigurationInfo(org.lsst.ccs.bus.states.ConfigurationState configState,
Set<Map.Entry<String,String>> recentChangesNames)
Builds a ConfigurationInfo object reflecting the configuration state and
ready to be sent on the buses.
|
org.lsst.ccs.utilities.structs.ViewValue |
checkForParameterChange(String componentName,
String parameterName,
Object value)
first part of a two phase commit
|
Set<String> |
getCategorySet() |
Map<String,org.lsst.ccs.utilities.structs.ViewValue> |
getCurrentValuesForComponent(String componentName)
Returns the current value of all parameters of a given configurable component
|
Map.Entry<org.lsst.ccs.bus.states.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() |
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)
Tagged categories in taggedCategories are saved under a new tag name.
|
void |
saveModifications(Map<String,String> categoryProfile) |
org.lsst.ccs.bus.data.ConfigurationInfo buildConfigurationInfo(org.lsst.ccs.bus.states.ConfigurationState configState, Set<Map.Entry<String,String>> recentChangesNames)
configState - recentChangesNames - ConfigurationInfo objectSet<String> getCategorySet()
String getTagName()
Map.Entry<org.lsst.ccs.bus.states.ConfigurationState,Set<ParameterConfiguration>> getInitialParameterConfigurations(Map<String,String> taggedCategories)
taggedCategories - the name of the initial configuration.org.lsst.ccs.utilities.structs.ViewValue checkForParameterChange(String componentName, String parameterName, Object value)
componentName - parameterName - value - IllegalArgumentException - if component or parameter does not existIllegalStateException - if called in normal mode (but implementation can decide to fire engineering mode)void 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 - ConfigurationServiceExceptionMap<String,org.lsst.ccs.utilities.structs.ViewValue> getCurrentValuesForComponent(String componentName)
componentName - the name of the configurable componentMap<String,Properties> loadCategories(Map<String,String> taggedCategories) throws ConfigurationServiceException
taggedCategories - a list of tagged categoriesConfigurationServiceExceptionboolean isDirty()
Copyright © 2015 LSST. All rights reserved.