
public class ComponentConfigurationEnvironment extends Object implements Configurable.Environment
SubsystemConfigurationEnvironment
but dedicated to the component it extends.
It can be accessed in the following ways:
Subsystem.getSubsystemForObject(this).getConfigurationEnvironmentForComponent(Object obj)Subsystem.getSubsystemForObject(this).getConfigurationEnvironmentByName(String name)UsesSubsystem and using method getComponentConfigurationEnvironment()| Modifier and Type | Method and Description |
|---|---|
void |
change(String parameterName,
Object value)
Single change of parameter that belongs to this component.
|
void |
dropAllChanges()
All parameters are set back to the value defined by the current
configuration they are running.
|
void |
dropBulkChange()
Drops the submitted changes for this component.
|
void |
dropChangesForCategories(String... categories)
All parameters that belong to one of the specified categories are set
back to the value defined by the current running configuration for this
category.
|
Map<String,String> |
getSubmittedChanges()
Gets the submitted changes for the specified component
|
Boolean |
isParameterConfigurable(String parameterName)
Indicates whether their is a configuration parameter named
parameterName that belong to this component. |
Map<String,String> |
printConfigurableParameters(String[] categories)
Returns the current values of the configuration parameters that belong to
this component and to the specified categories.
|
void |
saveAllChanges()
Saves the current value of each parameter in the current running
configuration.
|
void |
saveChangesForCategories(String... categories)
Saves the current value of each parameter that belongs to one of the
specified categories in the current running configuration for this
category.
|
void |
saveChangesForCategoriesAs(String... taggedCategories)
Saves the current value of each parameter that belongs to one of the
specified categories in a new configuration for this category.
|
void |
submitChange(String parameterName,
Object value)
Submits a change.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getComponentByName, getNameOfComponent, getParent, getSubsystempublic void change(String parameterName, Object value)
change in interface Configurable.EnvironmentparameterName - the name of the parameter.value - the new value to affect to this parameterConfigurationServiceException - if the change
has not been registered to the configuration service.BulkValidationException - if setting the
parameters fails at the validation step. The configuration state remains
unchanged.BulkSettingException - if setting the parameter
fails at the setting step, or if a suspicious change is detected at the
validation step, or if the final values of the parameters is not
consistent with the performed change. Existing submitted changes are
dropped and an alert is raised.IllegalStateException - if the subsystem is not in engineering mode
or if the subsystem is is INITIAL_SAFE configuration state.public void submitChange(String parameterName, Object value)
submitChange in interface Configurable.EnvironmentparameterName - a parameter that belongs to this componentvalue - the new value to submit for this component.IllegalArgumentException - if componentName does not have
a configurable parameter named parameterNameIllegalStateException - if the subsystem is not in engineering mode
or if the subsystem is is INITIAL_SAFE configuration state.public void saveAllChanges()
saveAllChanges in interface Configurable.EnvironmentConfigurationServiceException - if the configuration service is
unavailable. The configuration state does not change and the run-time
changes are still considered unsaved. In addition, an alert is raised to
indicate the configuration service unavailability.public void saveChangesForCategories(String... categories)
saveChangesForCategories in interface Configurable.Environmentcategories - a list of categories to saveConfigurationServiceException - if the configuration service is
unavailable. The configuration state does not change and existing
run-time changes are still considered unsaved. In addition, an alert is
raised to indicate the configuration service unavailability.public void saveChangesForCategoriesAs(String... taggedCategories)
saveChangesForCategoriesAs in interface Configurable.EnvironmenttaggedCategories - a list of pairs
categoryName:configurationName. {ConfigurationServiceException - if the
configuration service is not available.public void dropAllChanges()
dropAllChanges in interface Configurable.EnvironmentConfigurationServiceException - if the configuration service is
unavailable.BulkValidationException - if setting the parameters back to their
configured value fails at the validation step.BulkSettingException - if setting the parameters back to their
configured value fails at the setting step. An alert is raised.public void dropChangesForCategories(String... categories)
dropChangesForCategories in interface Configurable.Environmentcategories - A list of categoriesConfigurationServiceException - if the configuration service is
unavailable.BulkValidationException - if setting the parameters back to their
configured value fails at the validation step.BulkSettingException - if setting the parameters back to their
configured value fails at the setting step. An alert is raised.public Boolean isParameterConfigurable(String parameterName)
parameterName that belong to this component.isParameterConfigurable in interface Configurable.EnvironmentparameterName - the parameter namename
which belong to the component {public void dropBulkChange()
dropBulkChange in interface Configurable.EnvironmentIllegalArgumentException - if there is no component named namepublic Map<String,String> printConfigurableParameters(String[] categories)
printConfigurableParameters in interface Configurable.Environmentcategories - regardless of the category if null.IllegalArgumentException - if there is no component named
namepublic Map<String,String> getSubmittedChanges()
getSubmittedChanges in interface Configurable.EnvironmentIllegalArgumentException - if there is no component named nameCopyright © 2016 LSST. All rights reserved.