|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.search.core.extractor.RegistryExtractor
public class RegistryExtractor
Utilizes XML configuration files to extract data from the Registry Service
and create XML files for each Product containing the raw data found in the
RegistryService
.
TODO This should be refactored a bit using a DataExtractor interface to allow
for extension to other data sources (i.e. databases)
Constructor Summary | |
---|---|
RegistryExtractor(File confDir,
List<String> primaryRegistries,
List<String> secondaryRegistries)
Constructor used when an output directory is not specified and needs to be found using the java.class.path |
|
RegistryExtractor(File confDir,
List<String> primaryRegistries,
List<String> secondaryRegistries,
File outputDir)
Primary Constructor for RegistryExtractor class, including output directory
and the registry to query against. |
Method Summary | |
---|---|
File |
getConfDir()
|
List<File> |
getCoreConfigs(File configDir)
Return the List of core configuration files |
File |
getOutputDir()
|
List<String> |
getPrimaryRegistries()
|
int |
getQueryMax()
|
List<String> |
getSecondaryRegistries()
|
void |
run()
Driver method for extraction of data from data source |
void |
setConfDir(File confDir)
|
void |
setOutputDir(File outputDir)
|
void |
setPrimaryRegistries(List<String> primaryRegistries)
|
void |
setQueryMax(int queryMax)
|
void |
setSecondaryRegistries(List<String> secondaryRegistries)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryExtractor(File confDir, List<String> primaryRegistries, List<String> secondaryRegistries, File outputDir) throws SearchCoreFatalException
RegistryExtractor
class, including output directory
and the registry to query against.
outDir
- confDir
- primaryRegistries
- secondaryRegistries
-
SearchCoreFatalException
public RegistryExtractor(File confDir, List<String> primaryRegistries, List<String> secondaryRegistries) throws SearchCoreFatalException
java.class.path
confDir
- primaryRegistries
- secondaryRegistries
-
SearchCoreFatalException
Method Detail |
---|
public void run() throws SearchCoreException
DataExtractor
run
in interface DataExtractor
SearchCoreException
DataExtractor.run()
public List<File> getCoreConfigs(File configDir) throws SearchCoreException
DataExtractor
getCoreConfigs
in interface DataExtractor
SearchCoreException
DataExtractor.getCoreConfigs(File)
public final File getConfDir()
getConfDir
in interface DataExtractor
DataExtractor.getConfDir()
public final void setConfDir(File confDir)
setConfDir
in interface DataExtractor
DataExtractor.setConfDir(File)
public final int getQueryMax()
getQueryMax
in interface DataExtractor
DataExtractor.getQueryMax()
public final void setQueryMax(int queryMax)
setQueryMax
in interface DataExtractor
DataExtractor.setQueryMax(int)
public List<String> getPrimaryRegistries()
public void setPrimaryRegistries(List<String> primaryRegistries)
primaryRegistries
- the primaryRegistries to setpublic List<String> getSecondaryRegistries()
public void setSecondaryRegistries(List<String> secondaryRegistries)
secondaryRegistries
- the backupRegistries to setpublic File getOutputDir()
public void setOutputDir(File outputDir)
outputDir
- the outputDir to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |