public final class ConfigurationInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurationInfo.Builder
A builder for a {
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_VERSION |
static int |
LATEST_VERSION |
static int |
UNDEF_VERSION |
| Constructor and Description |
|---|
ConfigurationInfo() |
| Modifier and Type | Method and Description |
|---|---|
List<ConfigurationParameterInfo> |
diff(ConfigurationInfo ci)
Get the list of ConfigurationParameterInfo object whose value has changed
between the old and the new ConfigurationInfo.
|
List<ConfigurationParameterInfo> |
getAllParameterInfo()
Returns a list of
ConfigurationParameterInfo. |
Set<String> |
getCategorySet() |
org.lsst.ccs.utilities.taitime.CCSTimeStamp |
getCCSTimeStamp()
Get the CCSTimeStamp of when this object was created.
|
String |
getConfigNameForCategory(String category) |
String |
getConfigurationDescription()
Get the String representation of the Configuration Description.
|
String |
getConfigurationName()
Deprecated.
use getConfigurationDescription instead
|
ConfigurationState |
getConfigurationState() |
Integer |
getConfigVersion(String cat) |
ConfigurationParameterInfo |
getCurrentParameterInfo(String pathName)
Return the ConfigurationParameterInfo of a given configurable parameter
|
Map<String,ConfigurationParameterInfo> |
getCurrentParameterInfoFor(String componentName)
Returns the ConfigurationParameterInfo of each parameter that belongs to
the specified configurable component.
|
Map<String,ConfigurationParameterInfo> |
getCurrentParameterInfoForCategory(String category)
Returns the current ConfigurationParameterInfo of each parameter that
belong to the specified category.
|
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.
|
String |
getDescriptionName()
Returns the subsystem description name, ie the name of the description
file the subsystem is started with.
|
String |
getGlobalName() |
List<ConfigurationParameterInfo> |
getLatestChanges()
Returns a list of the last changes that occurred since the previous
ConfigurationInfo publication. |
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.
|
String |
getTaggedCategories()
Returns the String representation of the categories.
|
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.
|
void |
setConfigurationState(ConfigurationState state) |
String |
toString() |
public static final int DEFAULT_VERSION
public static final int LATEST_VERSION
public static final int UNDEF_VERSION
public String getDescriptionName()
public org.lsst.ccs.utilities.taitime.CCSTimeStamp getCCSTimeStamp()
public String getConfigurationDescription()
@Deprecated public String getConfigurationName()
public String getGlobalName()
public String getTaggedCategories()
public boolean hasChangesForCategory(String category)
category - public boolean hasChanges()
public String getConfigNameForCategory(String category)
category - public Integer getConfigVersion(String cat)
cat - 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 void setConfigurationState(ConfigurationState state)
public String toString()
public List<ConfigurationParameterInfo> getAllParameterInfo()
ConfigurationParameterInfo. Each element of
this list represents the current view of a configurable parameter.ConfigurationParameterInfopublic ConfigurationParameterInfo getCurrentParameterInfo(String pathName)
pathName - the path name of a parameter, ie
moduleName/parameterName, old format
moduleName//parameterName is still supported but should be
replaced)public Map<String,ConfigurationParameterInfo> getCurrentParameterInfoForCategory(String category)
category - public Map<String,ConfigurationParameterInfo> getCurrentParameterInfoFor(String componentName)
componentName - the name of the componentpublic List<ConfigurationParameterInfo> diff(ConfigurationInfo ci)
ci - The ConfigurationInfo object from which we want to calculate
the differencepublic List<ConfigurationParameterInfo> getLatestChanges()
ConfigurationInfo publication.
public Map<String,String> getCurrentValuesForCategory(String category)
category - public Map<String,String> getCurrentValuesFor(String componentName)
componentName - the name of the componentpublic String getCurrentValueForParameter(String pathName)
pathName - the path name of a parameter, ie
moduleName/parameterName, old format
moduleName//parameterName is still supported but should be
replaced)public static Map<String,List<ConfigurationParameterInfo>> getParameterInfoGroupByComponent(List<ConfigurationParameterInfo> parmList)
parmList - public static Map<String,List<ConfigurationParameterInfo>> getParameterInfoGroupByCategory(List<ConfigurationParameterInfo> parmList)
parmList - Copyright © 2021 LSST. All rights reserved.