public class HarvesterSearch extends Object
Constructor and Description |
---|
HarvesterSearch(String searchUrl,
File configDir,
File outputDir,
File resources)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
harvest(Policy policy)
Harvest the products specified in the given policy.
|
void |
setDaemonPort(int port)
Sets the daemon port.
|
void |
setWaitInterval(int interval)
Sets the wait interval in seconds in between crawls.
|
public HarvesterSearch(String searchUrl, File configDir, File outputDir, File resources)
searchUrl
- The search service location.configDir
- Top level directory to the Search Core configuration files.outputDir
- Directory location of the generated Solr documents.resources
- JSON file used as a lookup table for populating resources.public void setDaemonPort(int port)
port
- The port number to use.public void setWaitInterval(int interval)
interval
- The wait interval in seconds.public void harvest(Policy policy) throws IOException, org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException, gov.nasa.pds.search.core.exception.SearchCoreException, gov.nasa.pds.search.core.exception.SearchCoreFatalException
policy
- An object representation of the configuration file that
specifies what to harvest.org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
IOException
gov.nasa.pds.search.core.exception.SearchCoreFatalException
gov.nasa.pds.search.core.exception.SearchCoreException
Copyright © 2019. All rights reserved.