public class BootUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
bootFromCache() |
static org.lsst.ccs.config.SubsystemDescription |
buildSubsystemDescription(String subsystemName,
String tagName,
DescriptiveNode descriptiveNode)
creates a new
SubsystemDescription populated with "empty"
ParameterDescriptions. |
static void |
checkStaticCompatibleConfiguration(org.lsst.ccs.config.ConfigProfile profile)
To be invoked before registering a ConfigProfile
This method creates a real dummy EffectiveNode to check for
parameters that have preconditions.
|
static DescriptiveNode |
getLatestInCache() |
static Subsystem |
getSubsystemFromFile(String descriptionName)
Builds a
Subsystem instance out of a description file. |
static Subsystem |
getSubsystemFromFile(String descriptionName,
String configName)
Builds a
Subsystem given a description name and an initial
configuration. |
static Subsystem |
getSubsystemFromFile(String pathName,
String propertiesFileName,
String subsystemAlias)
Builds a
Subsystem given a description name, an initial
configuration and a alias. |
static void |
modifyDescriptiveNode(DescriptiveNode topNode,
Set<? extends org.lsst.ccs.config.ParameterConfiguration> parmConfigs)
Modifies the descriptive node with respect to the startup configuration.
|
static void |
saveInCache(DescriptiveNode node,
String subsystemName,
String configName,
String tag)
saves the latest run configuration in a local cache.
|
public static org.lsst.ccs.config.SubsystemDescription buildSubsystemDescription(String subsystemName, String tagName, DescriptiveNode descriptiveNode)
SubsystemDescription populated with "empty"
ParameterDescriptions. The object is not in the database since
the list of descriptions should be modified first.subsystemName - tagName - descriptiveNode - SubsystemDescription object containing the description
of the parameters as described in descriptiveNode.public static Subsystem getSubsystemFromFile(String descriptionName) throws Exception
Subsystem instance out of a description file.descriptionName - Exceptionpublic static Subsystem getSubsystemFromFile(String descriptionName, String configName) throws Exception
Subsystem given a description name and an initial
configuration.descriptionName - the name of the subsystem descriptionconfigName - the name of the configuration the subsystem is started
withExceptionpublic static Subsystem getSubsystemFromFile(String pathName, String propertiesFileName, String subsystemAlias) throws Exception
Subsystem given a description name, an initial
configuration and a alias. The subsystem will be named "alias" on the
buses.pathName - propertiesFileName - subsystemAlias - Exceptionpublic static void saveInCache(DescriptiveNode node, String subsystemName, String configName, String tag)
node - subsystemName - configName - tag - public static DescriptiveNode getLatestInCache()
public static void bootFromCache()
public static void modifyDescriptiveNode(DescriptiveNode topNode, Set<? extends org.lsst.ccs.config.ParameterConfiguration> parmConfigs)
topNode - parmConfigs - the set of parameters that are modified by the startup
configuration.public static void checkStaticCompatibleConfiguration(org.lsst.ccs.config.ConfigProfile profile) throws Exception
profile - ExceptionCopyright © 2016 LSST. All rights reserved.