public class Harvester extends Object
| Constructor and Description |
|---|
Harvester(String registryUrl,
String registryPackageGuid)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
harvest(Policy policy)
Harvest the products specified in the given policy.
|
void |
setBatchMode(int value)
Sets the number of concurrent registrations to make
during batch mode.
|
void |
setDaemonPort(int port)
Sets the daemon port.
|
void |
setSecurity(SecurityContext securityContext,
String username,
String password)
Sets the security.
|
void |
setWaitInterval(int interval)
Sets the wait interval in seconds in between crawls.
|
public Harvester(String registryUrl, String registryPackageGuid) throws RegistryClientException, MalformedURLException
registryUrl - The registry location.registryPackageGuid - The GUID of the registry package to associate
to all the products being registered during a single Harvest run.MalformedURLExceptionRegistryClientExceptionpublic void setSecurity(SecurityContext securityContext, String username, String password) throws MalformedURLException
securityContext - An object containing the keystore information.username - Username of an authorized user.password - Password associated with the given username.MalformedURLExceptionpublic void setDaemonPort(int port)
port - The port number to use.public void setWaitInterval(int interval)
interval - The wait interval in seconds.public void setBatchMode(int value)
value - integer value.public void harvest(Policy policy) throws org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException, IOException
policy - An object representation of the configuration file that
specifies what to harvest.org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionExceptionIOExceptionCopyright © 2010–2018 Planetary Data System. All rights reserved.