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(ConfigProfile configProfile) |
LocalConfigurationProxy(SubsystemDescription subsystemDesc) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyConfiguration(String... taggedCategories) |
org.lsst.ccs.utilities.structs.ViewValue |
checkForParameterChange(String componentName,
String parameterName,
Object value) |
void |
dropUnsavedChanges() |
void |
dropUnsavedChangesForCategories(Collection<String> categories) |
String |
getConfigurationName() |
Object |
getDefaultParameterValue(String componentName,
String parameterName) |
org.lsst.gruth.jutils.DescriptiveNode |
getModifiedConfigurationData()
prepares a new executable configuration data with these modified parameters.
|
ConfigProfile |
getProfileForCat(String categoryName) |
String |
getTagName() |
LocalConfigurationProxy.WriterProvider |
getWriterProvider() |
org.lsst.gruth.jutils.DescriptiveNode |
initializeConfigProfile(String... taggedCategories) |
void |
loadConfiguration(String... taggedCategories) |
void |
notifyParameterChange(String componentName,
String parameterName,
String value) |
void |
notifyUncheckedParameterChange(String componentName,
String parameterName,
Object value) |
void |
registerCategories(String... taggedCategories)
Tagged categories are saved under a new tag name.
|
void |
registerConfiguration(String... taggedCategories)
Tagged categories in taggedCategories are saved under their tagged name,
other categories are saved in their current tagged configuration.
|
void |
setLookup(ComponentLookupService lookup) |
void |
setWriterProvider(LocalConfigurationProxy.WriterProvider writerProvider) |
void |
startNewConfigurationContext()
Deprecated.
|
void |
switchConfiguration(ConfigProfile oldProfile,
ConfigProfile newProfile)
Configuration switch from one profile to another.
|
public LocalConfigurationProxy(SubsystemDescription subsystemDesc)
public LocalConfigurationProxy(ConfigProfile configProfile)
public org.lsst.gruth.jutils.DescriptiveNode initializeConfigProfile(String... taggedCategories)
public void setLookup(ComponentLookupService lookup)
setLookup in interface ConfigurationProxypublic String getConfigurationName()
getConfigurationName in interface ConfigurationProxypublic String getTagName()
getTagName in interface ConfigurationProxy@Deprecated public void startNewConfigurationContext()
startNewConfigurationContext 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 registerConfiguration(String... taggedCategories) throws IOException
registerConfiguration in interface ConfigurationProxytaggedCategories - IOExceptionpublic void registerCategories(String... taggedCategories) throws IOException
registerCategories in interface ConfigurationProxytaggedCategories - IOExceptionpublic Object getDefaultParameterValue(String componentName, String parameterName)
getDefaultParameterValue in interface ConfigurationProxypublic void setWriterProvider(LocalConfigurationProxy.WriterProvider writerProvider)
public LocalConfigurationProxy.WriterProvider getWriterProvider()
public void loadConfiguration(String... taggedCategories) throws Exception
loadConfiguration in interface ConfigurationProxyExceptionpublic void applyConfiguration(String... taggedCategories) throws Exception
applyConfiguration in interface ConfigurationProxyExceptionpublic void dropUnsavedChanges()
throws Exception
dropUnsavedChanges in interface ConfigurationProxyExceptionpublic 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 org.lsst.gruth.jutils.DescriptiveNode getModifiedConfigurationData()
Copyright © 2015 LSST. All rights reserved.