public class XtceLoader extends Object implements SpaceSystemLoader
| Constructor and Description |
|---|
XtceLoader(Map<String,Object> config) |
XtceLoader(String xtceFileName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigName()
The filename used to save the database after all the loaders have loaded it, is based on a
concatenation of the config names returned by the loaders.
|
SpaceSystem |
load()
loads the SpaceSystem database in memory.
|
boolean |
needsUpdate(RandomAccessFile consistencyDateFile) |
void |
writeConsistencyDate(FileWriter consistencyDateFile) |
public XtceLoader(String xtceFileName)
public boolean needsUpdate(RandomAccessFile consistencyDateFile) throws IOException, ConfigurationException
needsUpdate in interface DatabaseLoaderconsistencyDateFile - check in this file when the last databse has been loadedIOException - if the consistencyDateFile can not be read for some reasonConfigurationExceptionpublic SpaceSystem load() throws ConfigurationException, DatabaseLoadException
SpaceSystemLoaderload in interface SpaceSystemLoaderDatabaseLoadExceptionConfigurationExceptionpublic String getConfigName() throws ConfigurationException
DatabaseLoadergetConfigName in interface DatabaseLoaderConfigurationException - in case some of the configuration properties do not existpublic void writeConsistencyDate(FileWriter consistencyDateFile) throws IOException
writeConsistencyDate in interface DatabaseLoaderconsistencyDateFile - the file in which the consistency date should be writtenIOException - if the consistency date file can't be written for some reasonCopyright © 2017 Space Applications Services. All rights reserved.