public class HarvestSiteSchedule
extends java.lang.Object
Constructor and Description |
---|
HarvestSiteSchedule(Harvester harvester,
int siteScheduleID,
java.lang.String documentListURL,
java.lang.String ldapDN,
java.lang.String ldapPwd,
java.lang.String dateNextHarvest,
java.lang.String dateLastHarvest,
int updateFrequency,
java.lang.String unit,
java.lang.String contactEmail)
Creates a new instance of HarvestSiteSchedule.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dueForHarvest()
Boolean to determine whether this site is currently due for its next
harvest.
|
java.lang.String |
getSchemaLocation()
Accessor method for the schemaLocation field.
|
void |
harvestDocumentList()
Harvests each document in the site document list.
|
void |
metacatLogin()
Login to Metacat using the ldapDN and ldapPwd
|
boolean |
parseHarvestList()
Parses the site harvest list XML file to find out which documents to
harvest.
|
void |
printOutput(java.io.PrintStream out)
Prints the data that is stored in this HarvestSiteSchedule object.
|
void |
setSchemaLocation(java.lang.String schemaLocation)
Accessor method for setting the value of the schemaLocation field.
|
public HarvestSiteSchedule(Harvester harvester, int siteScheduleID, java.lang.String documentListURL, java.lang.String ldapDN, java.lang.String ldapPwd, java.lang.String dateNextHarvest, java.lang.String dateLastHarvest, int updateFrequency, java.lang.String unit, java.lang.String contactEmail)
harvester
- the parent Harvester objectsiteScheduleID
- the value of the SITE_SCHEDULE_ID fielddocumentListURL
- the value of the DOCUMENTLISTURL fieldldapDN
- the value of the LDAPDN fieldldapPwd
- the value of the LDAPPASSWORD fielddateNextHarvest
- the value of the DATENEXTHARVEST fielddateLastHarvest
- the value of the DATELASTHARVEST fieldupdateFrequency
- the value of the UPDATEFREQUENCY fieldunit
- the value of the UNIT fieldcontactEmail
- the value of the CONTACT_EMAIL fieldpublic boolean dueForHarvest()
public java.lang.String getSchemaLocation()
public void harvestDocumentList()
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public void metacatLogin()
public boolean parseHarvestList() throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public void printOutput(java.io.PrintStream out)
out
- the PrintStream to write topublic void setSchemaLocation(java.lang.String schemaLocation)
schemaLocation
- the new value of the schemaLocation fieldCopyright © 2020 Regents of the University of California. All Rights Reserved.