|
||||||||||
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,
String registryPackageGuid)
Constructor. |
Method Summary | |
---|---|
void |
harvest(Policy policy)
Harvest the products specified in the given policy. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.
MalformedURLException
RegistryClientException
Method Detail |
---|
public 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.
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 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.ConnectionException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |