Project

General

Profile

« Previous | Next » 

Revision 2060

Added by Duane Costa over 20 years ago

Changes to log entries

View differences:

src/edu/ucsb/nceas/metacat/harvesterClient/HarvestSiteSchedule.java
114 114
  
115 115
  
116 116
  /**
117
   * Updates the DATELASTHARVEST value of the HARVEST_SITE_SCHEDULE table
118
   * after a harvest operation has completed. Calculates the date of the next 
119
   * harvest based on today's date and the update frequency.
117
   * Updates the DATELASTHARVEST and DATENEXTHARVEST values of the 
118
   * HARVEST_SITE_SCHEDULE table after a harvest operation has completed.
119
   * Calculates the date of the next harvest based on today's date and the 
120
   * update frequency.
120 121
   */
121
  private void dbUpdateHarvestSiteSchedule() {
122
  private void dbUpdateHarvestDates() {
122 123
		Connection conn;
123 124
    long currentTime;                    // Current time in milliseconds
124 125
    Date dateNextHarvest;                // Date of next harvest
......
219 220
          }
220 221

  
221 222
          metacatLogout();      
222
          dbUpdateHarvestSiteSchedule();  // Update the schedule
223
          dbUpdateHarvestDates();  // Update the schedule
223 224
        }
224 225
      }
225 226
      catch (ParserConfigurationException e) {
......
294 295
    try {
295 296
      url = new URL(documentListURL);
296 297
      inputStream = url.openStream();
297
      harvester.addLogEntry(0, "", "GetDocListSuccess", 
298
                            siteScheduleID, null, "");
298
      harvester.addLogEntry(0,
299
                            "Retrieved: " + documentListURL,
300
                            "GetDocListSuccess",
301
                            siteScheduleID,
302
                            null,
303
                            "");
299 304
      inputStreamReader = new InputStreamReader(inputStream);
300 305
      documentListHandler.runParser(inputStreamReader, schemaLocation);
301
      harvester.addLogEntry(0, "", "ValidateDocListSuccess", 
302
                            siteScheduleID, null, "");
306
      harvester.addLogEntry(0,
307
                            "Validated: " + documentListURL,
308
                            "ValidateDocListSuccess",
309
                            siteScheduleID,
310
                            null,
311
                            "");
303 312
      success = true;
304 313
    }
305 314
    catch (MalformedURLException e){

Also available in: Unified diff