public class HarvesterSearch
extends java.lang.Object
Constructor and Description |
---|
HarvesterSearch(java.io.File configDir,
java.io.File outputDir)
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(java.io.File configDir, java.io.File outputDir)
registryUrl
- The registry location.registryPackageGuid
- The GUID of the registry package to associate
to all the products being registered during a single Harvest run.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 java.io.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
java.io.IOException
gov.nasa.pds.search.core.exception.SearchCoreFatalException
gov.nasa.pds.search.core.exception.SearchCoreException
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.