public abstract class AbstractFileLoader extends Object implements SpaceSystemLoader
| Modifier and Type | Field and Description |
|---|---|
protected String |
configName |
protected org.slf4j.Logger |
log |
protected String |
path |
| Constructor and Description |
|---|
AbstractFileLoader(String path) |
| 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.
|
boolean |
needsUpdate(RandomAccessFile consistencyDateFile) |
void |
writeConsistencyDate(FileWriter consistencyDateFile) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadprotected final org.slf4j.Logger log
protected String configName
protected String path
public AbstractFileLoader(String path) throws ConfigurationException
ConfigurationExceptionpublic 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 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 reasonpublic String getConfigName() throws ConfigurationException
DatabaseLoadergetConfigName in interface DatabaseLoaderConfigurationException - in case some of the configuration properties do not existCopyright © 2017 Space Applications Services. All rights reserved.