public class Harvester
extends java.lang.Object
Constructor and Description |
---|
Harvester(java.lang.String registryUrl,
java.lang.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(gov.nasa.pds.registry.client.SecurityContext securityContext,
java.lang.String username,
java.lang.String password)
Sets the security.
|
void |
setWaitInterval(int interval)
Sets the wait interval in seconds in between crawls.
|
public Harvester(java.lang.String registryUrl, java.lang.String registryPackageGuid) throws gov.nasa.pds.registry.exception.RegistryClientException, java.net.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.java.net.MalformedURLException
gov.nasa.pds.registry.exception.RegistryClientException
public void setSecurity(gov.nasa.pds.registry.client.SecurityContext securityContext, java.lang.String username, java.lang.String password) throws java.net.MalformedURLException
securityContext
- An object containing the keystore information.username
- Username of an authorized user.password
- Password associated with the given username.java.net.MalformedURLException
public 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, java.io.IOException
policy
- An object representation of the configuration file that
specifies what to harvest.org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
java.io.IOException
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.