public final class ConfigurationInfo extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationInfo(ConfigurationState configState,
String tagName) |
|
ConfigurationInfo(ConfigurationState configState,
String tagName,
Map<String,String> tags,
Map<String,Boolean> hasCategoryChanged,
List<ConfigurationParameterInfo> parametersView) |
|
ConfigurationInfo(ConfigurationState configState,
String tagName,
Map<String,String> tags,
Map<String,Boolean> hasCategoryChanged,
List<ConfigurationParameterInfo> parametersView,
List<String> recentChanges) |
| Modifier and Type | Method and Description |
|---|---|
List<ConfigurationParameterInfo> |
getAllParameterInfo()
Returns a list of
ConfigurationParameterInfo. |
Set<String> |
getCategorySet() |
String |
getConfigNameForCategory(String category) |
String |
getConfigurationName() |
ConfigurationState |
getConfigurationState() |
String |
getCurrentValueForParameter(String pathName)
Return the current value of a given configurable parameter
|
Map<String,String> |
getCurrentValuesFor(String componentName)
Returns the current value of each parameter that belong to the specified
configurable component.
|
Map<String,String> |
getCurrentValuesForCategory(String category)
Returns the current value of each parameter that belong to the specified
category.
|
Map<String,String> |
getCurrentValuesForComponent(String componentName)
Deprecated.
the keys are componentName//parameterName
|
String |
getDescriptionName()
Returns the subsystem description name, ie the name of the description
file the subsystem is started with.
|
List<ConfigurationParameterInfo> |
getLatestChanges()
Returns a list of the recent changes caused by the
If a single change is processed, the returned list contains this change only.
|
static Map<String,List<ConfigurationParameterInfo>> |
getParameterInfoGroupByCategory(List<ConfigurationParameterInfo> parmList)
Groups the ConfigurationParameterInfo objects of the input list by the category they belong to.
|
static Map<String,List<ConfigurationParameterInfo>> |
getParameterInfoGroupByComponent(List<ConfigurationParameterInfo> parmList)
Groups the ConfigurationParameterInfo objects of the input list by the component they belong to.
|
boolean |
hasCategory(String category)
Tests if
category is one of the subsystem parameter categories. |
boolean |
hasChanges() |
boolean |
hasChangesForCategory(String category)
Returns true if there are unsaved changes for the specified category.
|
String |
toString() |
protected ConfigurationInfo(ConfigurationState configState, String tagName)
public ConfigurationInfo(ConfigurationState configState, String tagName, Map<String,String> tags, Map<String,Boolean> hasCategoryChanged, List<ConfigurationParameterInfo> parametersView)
public String getDescriptionName()
public String getConfigurationName()
public boolean hasChangesForCategory(String category)
category - public boolean hasChanges()
public String getConfigNameForCategory(String category)
category - public boolean hasCategory(String category)
category is one of the subsystem parameter categories.category - category is one of the parameter categories of
the subsystem.public Set<String> getCategorySet()
public ConfigurationState getConfigurationState()
public String toString()
public List<ConfigurationParameterInfo> getAllParameterInfo()
ConfigurationParameterInfo. Each element of this
list represents the current view of a configurable parameter.ConfigurationParameterInfopublic List<ConfigurationParameterInfo> getLatestChanges()
public Map<String,String> getCurrentValuesForCategory(String category)
category - @Deprecated public Map<String,String> getCurrentValuesForComponent(String componentName)
componentName - the path of the parameterpublic Map<String,String> getCurrentValuesFor(String componentName)
componentName - the name of the componentpublic String getCurrentValueForParameter(String pathName)
pathName - the path name of a parameterpublic static Map<String,List<ConfigurationParameterInfo>> getParameterInfoGroupByComponent(List<ConfigurationParameterInfo> parmList)
parmList - public static Map<String,List<ConfigurationParameterInfo>> getParameterInfoGroupByCategory(List<ConfigurationParameterInfo> parmList)
parmList - Copyright © 2016 LSST. All rights reserved.