public class XtceDbFactory extends Object
| Constructor and Description |
|---|
XtceDbFactory() |
| Modifier and Type | Method and Description |
|---|---|
static XtceDb |
createInstance(List<Object> treeConfig,
boolean attemptToLoadSerialized,
boolean saveSerialized)
Load a XTCE database from a description.
|
static XtceDb |
createInstanceByConfig(String configSection)
Creates a new instance of the database in memory.
|
static XtceDb |
createInstanceByConfig(String configSection,
boolean attemptToLoadSerialized) |
static XtceDb |
getInstance(String yamcsInstance)
retrieves the XtceDb for the corresponding yamcsInstance.
|
static XtceDb |
getInstanceByConfig(String yamcsInstance,
String config) |
static void |
remove(String yamcsInstance)
Removes the Xtcedb corresponding to yamcsInstance from memory
|
static void |
reset()
forgets any singleton
|
public static XtceDb createInstanceByConfig(String configSection) throws DatabaseLoadException
DatabaseLoadExceptionpublic static XtceDb createInstanceByConfig(String configSection, boolean attemptToLoadSerialized) throws ConfigurationException, DatabaseLoadException
public static XtceDb createInstance(List<Object> treeConfig, boolean attemptToLoadSerialized, boolean saveSerialized) throws ConfigurationException, DatabaseLoadException
treeConfig - - this should be a list of maps as it would come out of the mdb.yaml definition.attemptToLoadSerialized - - if true, it will attempt to load a serialized version from the disk
instead of creating a new object by loading all elements from the tree definition.saveSerialized - - if the result should be saved as a serialized file.
If the database has been loaded from a serialized file, this option will have no effect.ConfigurationExceptionDatabaseLoadExceptionpublic static XtceDb getInstance(String yamcsInstance) throws ConfigurationException
yamcsInstance - ConfigurationExceptionDatabaseLoadExceptionpublic static void remove(String yamcsInstance)
public static void reset()
Copyright © 2018 Space Applications Services. All rights reserved.