|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.harvesterClient.HarvestSiteSchedule
public class HarvestSiteSchedule
HarvestSiteSchedule manages a single entry in the HARVEST_SITE_SCHEDULE table, determining when and how to harvest the documents for a given site.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 field| Method Detail |
|---|
public boolean dueForHarvest()
public java.lang.String getSchemaLocation()
public void harvestDocumentList()
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationExceptionpublic void metacatLogin()
public boolean parseHarvestList()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic 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 field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||