public class BootUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BootUtils.LocalBootObject
Very important class: when an instance is created you can have :
a descriptive Node
the names of subsystem, configuration, tag
the corresponding Effective Node
a Subsystem ready to run (but not started)
|
| Constructor and Description |
|---|
BootUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bootFromCache() |
static org.lsst.ccs.config.SubsystemDescription |
buildSubsystemDescription(String subsystemName,
String tagName,
org.lsst.ccs.description.DescriptiveNode descriptiveNode,
org.lsst.ccs.config.DataFlavour dataFlavour)
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 org.lsst.ccs.description.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 org.lsst.ccs.description.DescriptiveNode |
modifyDescriptiveNode(org.lsst.ccs.description.DescriptiveNode node,
Set<? extends org.lsst.ccs.config.ParameterConfiguration> parmConfigs)
Modifies the node in argument with respect to the set of ParameterConfiguration
TODO : from the ParameterConfiguration objects we only need their name and current value.
|
static void |
saveInCache(org.lsst.ccs.description.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, org.lsst.ccs.description.DescriptiveNode descriptiveNode, org.lsst.ccs.config.DataFlavour dataFlavour)
SubsystemDescription populated with "empty" ParameterDescriptions.
The object is not in the database since the list of descriptions should be modified first.subsystemName - tagName - descriptiveNode - dataFlavour - 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(org.lsst.ccs.description.DescriptiveNode node, String subsystemName, String configName, String tag)
node - subsystemName - configName - tag - public static org.lsst.ccs.description.DescriptiveNode getLatestInCache()
public static void bootFromCache()
public static org.lsst.ccs.description.DescriptiveNode modifyDescriptiveNode(org.lsst.ccs.description.DescriptiveNode node, Set<? extends org.lsst.ccs.config.ParameterConfiguration> parmConfigs)
node - parmConfigs - public static void checkStaticCompatibleConfiguration(org.lsst.ccs.config.ConfigProfile profile) throws Exception
profile - ExceptionCopyright © 2015 LSST. All rights reserved.