public class RegistryExtractor extends Object implements DataExtractor
RegistryService
.
TODO This should be refactored a bit using a DataExtractor interface to allow
for extension to other data sources (i.e. databases)Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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) |
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
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 void setPrimaryRegistries(List<String> primaryRegistries)
primaryRegistries
- the primaryRegistries to setpublic void setSecondaryRegistries(List<String> secondaryRegistries)
secondaryRegistries
- the backupRegistries to setpublic File getOutputDir()
public void setOutputDir(File outputDir)
outputDir
- the outputDir to setCopyright © 2010–2016 Planetary Data System. All rights reserved.