public class HarvesterSearch extends Object
Constructor and Description |
---|
HarvesterSearch(File configDir,
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 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, SearchCoreException, SearchCoreFatalException
policy
- An object representation of the configuration file that
specifies what to harvest.org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
IOException
SearchCoreFatalException
SearchCoreException
Copyright © 2010–2017 Planetary Data System. All rights reserved.