public class LocalConfigurationProxy extends Object implements ConfigurationProxy
| Modifier and Type | Class and Description |
|---|---|
static interface |
LocalConfigurationProxy.WriterProvider
When locally registering properties the LocalConfigurationProxy may need to write
properties in a File or in memory for tests purposes.
|
| Constructor and Description |
|---|
LocalConfigurationProxy(SubsystemDescription subsystemDesc)
Builds a configuration proxy for the subsystem described by
subsystemDesc. |
| 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)
Loads the startup configuration represented by taggedCategories, initializes the config profiles
and returns a set of values to assign to parameters before startup
|
ConfigProfile |
getProfileForCat(String categoryName) |
Map<String,String> |
getTaggedCategoriesForCats(Set<String> categories) |
String |
getTagName()
the current tag name (can be null or empty)
|
LocalConfigurationProxy.WriterProvider |
getWriterProvider() |
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 value)
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 are saved under a new tag name.
|
void |
saveModifications(Map<String,String> taggedCategories)
Modification occurring in one of the tagged categories are saved.
|
void |
setWriterProvider(LocalConfigurationProxy.WriterProvider writerProvider) |
public LocalConfigurationProxy(SubsystemDescription subsystemDesc)
subsystemDesc.subsystemDesc - public Set<String> getCategorySet()
getCategorySet in interface ConfigurationProxypublic Map.Entry<org.lsst.ccs.bus.states.ConfigurationState,Set<ParameterConfiguration>> getInitialParameterConfigurations(Map<String,String> taggedCategories)
getInitialParameterConfigurations in interface ConfigurationProxytaggedCategories - public String getTagName()
ConfigurationProxygetTagName in interface ConfigurationProxypublic org.lsst.ccs.bus.data.ConfigurationInfo buildConfigurationInfo(org.lsst.ccs.bus.states.ConfigurationState configState, Set<Map.Entry<String,String>> recentChangesNames)
buildConfigurationInfo in interface ConfigurationProxyconfigState - ConfigurationInfo objectpublic org.lsst.ccs.utilities.structs.ViewValue checkForParameterChange(String componentName, String parameterName, Object value)
ConfigurationProxycheckForParameterChange in interface ConfigurationProxypublic void notifyParameterChange(String componentName, String parameterName, String value)
ConfigurationProxynotifyParameterChange in interface ConfigurationProxypublic void notifyUncheckedParameterChange(String componentName, String parameterName, Object value)
ConfigurationProxynotifyUncheckedParameterChange in interface ConfigurationProxypublic void saveChangesForCategoriesAs(Map<String,String> taggedCategories) throws ConfigurationServiceException
saveChangesForCategoriesAs in interface ConfigurationProxytaggedCategories - ConfigurationServiceExceptionpublic Map<String,String> getTaggedCategoriesForCats(Set<String> categories)
getTaggedCategoriesForCats in interface ConfigurationProxypublic void saveModifications(Map<String,String> taggedCategories)
saveModifications in interface ConfigurationProxytaggedCategories - public Map<String,org.lsst.ccs.utilities.structs.ViewValue> getCurrentValuesForComponent(String componentName)
getCurrentValuesForComponent in interface ConfigurationProxycomponentName - the name of the configurable componentpublic void setWriterProvider(LocalConfigurationProxy.WriterProvider writerProvider)
public LocalConfigurationProxy.WriterProvider getWriterProvider()
public boolean isDirty()
isDirty in interface ConfigurationProxypublic Map<String,Properties> loadCategories(Map<String,String> taggedCategories) throws ConfigurationServiceException
ConfigurationProxyloadCategories in interface ConfigurationProxytaggedCategories - a list of tagged categoriesConfigurationServiceExceptionpublic ConfigProfile getProfileForCat(String categoryName)
Copyright © 2015 LSST. All rights reserved.