
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 void |
checkStaticCompatibleConfiguration(ConfigProfile profile)
to be invoked before registering a ConfigProfile which is not meant
to be used for changing values at runtime.
|
static DescriptiveNode |
getDescriptiveNode(String pathName)
gets a descriptive node from a file
|
static EffectiveNode |
getEffectiveNode(DescriptiveNode descriptionNode)
gets an effective node from a description node
|
static EffectiveNode |
getEffectiveNodeFromFile(String pathName)
gets an effective node from a file
|
static DescriptiveNode |
getLatestInCache() |
static Subsystem |
getRawSubsystemFromEffectiveNode(EffectiveNode effectiveNode,
ConfigProfile profile,
String subsystemName,
String configName,
String tag,
ConfigurationProxy confProxy) |
static Subsystem |
getSubsystemFromFile(String pathName) |
static Subsystem |
getSubsystemFromFile(String pathName,
String propertiesFileName) |
static Subsystem |
getSubsystemFromFile(String pathName,
String propertiesFileName,
String subsystemAlias) |
static Subsystem |
rawSubsystemFromDescriptionNode(DescriptiveNode descriptionNode,
ConfigProfile profile,
String subsystemName,
String configName,
String tag,
ConfigurationProxy confProxy) |
static void |
saveInCache(DescriptiveNode node,
String subsystemName,
String configName,
String tag)
saves the latest run configuration in a local cache.
|
public static DescriptiveNode getDescriptiveNode(String pathName) throws Exception
pathName - Exceptionpublic static EffectiveNode getEffectiveNode(DescriptiveNode descriptionNode) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException
descriptionNode - InvocationTargetExceptionNoSuchMethodExceptionIllegalAccessExceptionpublic static EffectiveNode getEffectiveNodeFromFile(String pathName) throws Exception
pathName - Exceptionpublic static Subsystem getRawSubsystemFromEffectiveNode(EffectiveNode effectiveNode, ConfigProfile profile, String subsystemName, String configName, String tag, ConfigurationProxy confProxy)
public static Subsystem rawSubsystemFromDescriptionNode(DescriptiveNode descriptionNode, ConfigProfile profile, String subsystemName, String configName, String tag, ConfigurationProxy confProxy) throws Exception
Exceptionpublic static Subsystem getSubsystemFromFile(String pathName) throws Exception
Exceptionpublic static Subsystem getSubsystemFromFile(String pathName, String propertiesFileName) throws Exception
Exceptionpublic static Subsystem getSubsystemFromFile(String pathName, String propertiesFileName, String subsystemAlias) throws Exception
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 checkStaticCompatibleConfiguration(ConfigProfile profile) throws Exception
profile - ExceptionCopyright © 2015 LSST. All rights reserved.