|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.harvest.Harvester
public class Harvester
Front end class to the Harvest tool.
Constructor Summary | |
---|---|
Harvester(String registryUrl,
Candidate candidates)
Constructor. |
Method Summary | |
---|---|
void |
harvest(Target target)
Harvests the products in the given target. |
void |
harvest(Target target,
List<String> fileFilters)
Harvests the products in the given file.. |
void |
setDaemonPort(int port)
Sets the daemon port. |
void |
setDoValidation(boolean value)
Set the flag to perform validation while crawling. |
void |
setSecuredUser(SecuredUser user)
Sets the security for the Harvest tool. |
void |
setWaitInterval(int interval)
Sets the wait interval in seconds in between crawls. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Harvester(String registryUrl, Candidate candidates)
registryUrl
- The registry location.candidates
- Class containing the products to look for and what
metadata to extract.Method Detail |
---|
public void setSecuredUser(SecuredUser user)
user
- An authorized user.public void setDoValidation(boolean value)
value
- A boolean value.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(Target target) throws MalformedURLException, ParserConfigurationException, RegistryClientException
target
- A target file (directory, collection, or bundle).
ParserConfigurationException
- If an error occurred during
metadata extraction.
MalformedURLException
- If an error occurred while setting
the registry URL to the crawler.
RegistryClientException
public void harvest(Target target, List<String> fileFilters) throws ParserConfigurationException, MalformedURLException, RegistryClientException
target
- A target file (directory, collection, or bundle).fileFilters
- Specify a list of file filters to search for
specific files in a target directory.
ParserConfigurationException
- If an error occurred during
metadata extraction.
MalformedURLException
- If an error occurred while setting
the registry URL to the crawler.
RegistryClientException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |