|
||||||||||
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 Registry.
Constructor Summary | |
---|---|
RegistryExtractor(String outDir,
boolean clean)
Object initializer method with an output directory and clean boolean parameter specified. |
Method Summary | |
---|---|
void |
close()
Complete the output for the log and flush/close the PrintWriter. |
File |
getConfDir()
|
Set<String> |
getProductClassList()
Return the set of product classes to be parsed, as denoted in the product-classes.txt configuration file. |
int |
getQueryMax()
|
String |
getRegistryUrl()
|
void |
run()
Driver method for extraction of data for all classes to be included in catalog. |
void |
setConfDir(File confDir)
|
void |
setQueryMax(int queryMax)
|
void |
setRegistryUrl(String registryUrl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryExtractor(String outDir, boolean clean) throws ProductClassException
outDir
- clean
-
ProductClassException
- thrown when directories cannot be createdMethod Detail |
---|
public final void close()
public final void run() throws ProductClassException, IOException
ProductClassException
- thrown if error found during registry queries
IOException
- thrown if files cannot be createdpublic Set<String> getProductClassList() throws ProductClassException
ProductClassException
- thrown when error loading properties filepublic final File getConfDir()
public final void setConfDir(File confDir)
confDir
- the confDir to setpublic final String getRegistryUrl()
public final void setRegistryUrl(String registryUrl)
registryUrl
- the registryUrl to setpublic final int getQueryMax()
public final void setQueryMax(int queryMax)
queryMax
- the queryMax to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |