gov.nasa.pds.search.core
Class SearchCore

java.lang.Object
  extended by gov.nasa.pds.search.core.SearchCore

public class SearchCore
extends Object


Constructor Summary
SearchCore(File searchHome)
           
SearchCore(File searchHome, List<String> configHomeList)
           
 
Method Summary
 List<String> getConfigHomeList()
           
 File getExtractorOutputDir(String outDir)
           
 File prepForExtractorRun(boolean clean)
          Create the output directory for the Registry Extractor data.
 void runRegistryExtractor(List<String> primaryRegistries, List<String> secondaryRegistries, int queryMax, boolean clean)
          Runs the Registry Extractor component.
 void runSolrIndexer()
          Runs the SolrIndexer component.
 void runSolrPost(String serviceUrl)
           
 void setConfigHomeList(List<String> configHomeList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchCore

public SearchCore(File searchHome)

SearchCore

public SearchCore(File searchHome,
                  List<String> configHomeList)
Method Detail

runRegistryExtractor

public void runRegistryExtractor(List<String> primaryRegistries,
                                 List<String> secondaryRegistries,
                                 int queryMax,
                                 boolean clean)
                          throws Exception
Runs the Registry Extractor component.

Throws:
Exception

runSolrIndexer

public void runSolrIndexer()
                    throws IndexerException
Runs the SolrIndexer component.

Throws:
IOException
org.apache.commons.cli.ParseException
Exception
IndexerException

runSolrPost

public void runSolrPost(String serviceUrl)
                 throws SolrPostException
Throws:
SolrPostException

prepForExtractorRun

public File prepForExtractorRun(boolean clean)
                         throws SearchCoreFatalException
Create the output directory for the Registry Extractor data.

Parameters:
outDir - The base directory where the registry-data directory is created.
clean - Boolean parameter used to determine whether or not the previous run data should be removed. This is used in case user decides to append to previous runs data.
Throws:
ProductClassException - thrown when directories cannot be created
SearchCoreFatalException

getExtractorOutputDir

public File getExtractorOutputDir(String outDir)

getConfigHomeList

public List<String> getConfigHomeList()
Returns:
the configHomeList

setConfigHomeList

public void setConfigHomeList(List<String> configHomeList)
Parameters:
configHomeList - the configHomeList to set


Copyright © 2010-2014 Planetary Data System. All Rights Reserved.