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.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CAT |
static String |
DEFAULT_CONFIG_NAME |
| Constructor and Description |
|---|
LocalConfigurationProxy(ConfigProfile configProfile) |
LocalConfigurationProxy(SubsystemDescription subsystemDesc)
Builds a configuration proxy out of a subsystem description.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.bus.data.ConfigurationInfo |
buildConfigurationInfo()
Builds a ConfigurationInfo object reflecting the configuration state and
ready to be sent on the buses.
|
void |
change(Configurable configurable,
String parameterName,
Object value) |
org.lsst.ccs.utilities.structs.ViewValue |
checkForParameterChange(String componentName,
String parameterName,
Object value) |
void |
dropUnsavedChangesForCategories(Collection<String> categories) |
Set<String> |
getCategorySet() |
Object |
getDefaultParameterValue(String componentName,
String parameterName) |
TreeNode |
getInitialDescriptiveNode(Map<String,String> taggedCategories)
Builds a TreeNode representing the hierarchical structure of the worker subsystem.
|
DescriptiveNode |
getModifiedConfigurationData()
prepares a new executable configuration data with these modified parameters.
|
ConfigProfile |
getProfileForCat(String categoryName) |
String |
getTagName() |
LocalConfigurationProxy.WriterProvider |
getWriterProvider() |
void |
loadCategories(Map<String,String> taggedCategories) |
void |
notifyParameterChange(String componentName,
String parameterName,
String value) |
void |
notifyUncheckedParameterChange(String componentName,
String parameterName,
Object value) |
void |
saveChangesForCategories(Set<String> categories) |
void |
saveChangesForCategoriesAs(Map<String,String> taggedCategories)
Tagged categories are saved under a new tag name.
|
void |
setLookup(ComponentLookupService lookup) |
void |
setWriterProvider(LocalConfigurationProxy.WriterProvider writerProvider) |
void |
switchConfiguration(ConfigProfile oldProfile,
ConfigProfile newProfile)
Configuration switch from one profile to another.
|
public static final String DEFAULT_CONFIG_NAME
public static final String DEFAULT_CAT
public LocalConfigurationProxy(SubsystemDescription subsystemDesc)
subsystemDesc - public LocalConfigurationProxy(ConfigProfile configProfile)
public Set<String> getCategorySet()
getCategorySet in interface ConfigurationProxypublic TreeNode getInitialDescriptiveNode(Map<String,String> taggedCategories)
getInitialDescriptiveNode in interface ConfigurationProxytaggedCategories - public void setLookup(ComponentLookupService lookup)
setLookup in interface ConfigurationProxypublic String getTagName()
getTagName in interface ConfigurationProxypublic org.lsst.ccs.bus.data.ConfigurationInfo buildConfigurationInfo()
buildConfigurationInfo in interface ConfigurationProxypublic org.lsst.ccs.utilities.structs.ViewValue checkForParameterChange(String componentName, String parameterName, Object value)
checkForParameterChange in interface ConfigurationProxypublic void notifyParameterChange(String componentName, String parameterName, String value)
notifyParameterChange in interface ConfigurationProxypublic void notifyUncheckedParameterChange(String componentName, String parameterName, Object value)
notifyUncheckedParameterChange in interface ConfigurationProxypublic void saveChangesForCategoriesAs(Map<String,String> taggedCategories) throws ConfigurationServiceException
saveChangesForCategoriesAs in interface ConfigurationProxytaggedCategories - IOExceptionConfigurationServiceExceptionpublic void saveChangesForCategories(Set<String> categories) throws ConfigurationServiceException
saveChangesForCategories in interface ConfigurationProxyConfigurationServiceExceptionpublic Object getDefaultParameterValue(String componentName, String parameterName)
getDefaultParameterValue in interface ConfigurationProxypublic void setWriterProvider(LocalConfigurationProxy.WriterProvider writerProvider)
public LocalConfigurationProxy.WriterProvider getWriterProvider()
public void loadCategories(Map<String,String> taggedCategories) throws ConfigurationServiceException, Exception
loadCategories in interface ConfigurationProxyConfigurationServiceExceptionExceptionpublic void dropUnsavedChangesForCategories(Collection<String> categories) throws Exception
dropUnsavedChangesForCategories in interface ConfigurationProxyExceptionpublic void switchConfiguration(ConfigProfile oldProfile, ConfigProfile newProfile) throws Exception
oldProfile - profile still active in databasenewProfile - profile to be registered afterwardsException - could be that a parameter change is refused by code or that rollback failed afterwardspublic ConfigProfile getProfileForCat(String categoryName)
public DescriptiveNode getModifiedConfigurationData()
public void change(Configurable configurable, String parameterName, Object value) throws Exception
change in interface ConfigurationProxyconfigurable - parameterName - value - ExceptionCopyright © 2015 LSST. All rights reserved.