Project

General

Profile

« Previous | Next » 

Revision 4175

Added by daigle almost 16 years ago

Qualify harvester properties

View differences:

HarvestDocument.java
126 126
      stringReader = new StringReader(documentString);
127 127
      harvester.addLogEntry(0,
128 128
                            "Retrieved: " + documentURL, 
129
                            "GetDocSuccess", 
129
                            "harvester.GetDocSuccess", 
130 130
                            harvestSiteSchedule.siteScheduleID, 
131 131
                            null, 
132 132
                            "");
133 133
    }
134 134
    catch (MalformedURLException e) {
135 135
      accessError = true;
136
      harvester.addLogEntry(1, "MalformedURLException", "GetDocError", 
136
      harvester.addLogEntry(1, "MalformedURLException", "harvester.GetDocError", 
137 137
                            harvestSiteSchedule.siteScheduleID, this, 
138 138
                            "MalformedURLException: " + e.getMessage());
139 139
    }
140 140
    catch (IOException e) {
141 141
      accessError = true;
142
      harvester.addLogEntry(1, "IOException", "GetDocError", 
142
      harvester.addLogEntry(1, "IOException", "harvester.GetDocError", 
143 143
                            harvestSiteSchedule.siteScheduleID, this, 
144 144
                            "IOException: " + e.getMessage());
145 145
    }
......
180 180
                            "Attempting to update " + docid + " to revision " + 
181 181
                            revision + ". Metacat has document revision " +
182 182
                            highestRevision + ".", 
183
                            "MetacatHasDoc", 
183
                            "harvester.MetacatHasDoc", 
184 184
                            harvestSiteSchedule.siteScheduleID, 
185 185
                            null, 
186 186
                            "");
......
215 215
    if (insert) {
216 216
      harvester.addLogEntry(1, 
217 217
                            metacatReturnString,
218
                            "InsertDocError",
218
                            "harvester.InsertDocError",
219 219
                            harvestSiteSchedule.siteScheduleID,
220 220
                            this,
221 221
                            exceptionName + ": " + e.getMessage());
......
223 223
    else {
224 224
      harvester.addLogEntry(1, 
225 225
                            metacatReturnString,
226
                            "UpdateDocError",
226
                            "harvester.UpdateDocError",
227 227
                            harvestSiteSchedule.siteScheduleID,
228 228
                            this,
229 229
                            exceptionName + ": " + e.getMessage());
......
308 308
          metacatReturnString = metacat.insert(docidFull, stringReader, null);
309 309
          inserted = true;
310 310
          harvester.addLogEntry(0, docidFull + " : " + metacatReturnString, 
311
                                "InsertDocSuccess", 
311
                                "harvester.InsertDocSuccess", 
312 312
                                harvestSiteSchedule.siteScheduleID, 
313 313
                                null, "");
314 314
        }
......
316 316
          metacatReturnString = metacat.update(docidFull, stringReader, null);
317 317
          updated = true;
318 318
          harvester.addLogEntry(0, docidFull + " : " + metacatReturnString, 
319
                                "UpdateDocSuccess", 
319
                                "harvester.UpdateDocSuccess", 
320 320
                                harvestSiteSchedule.siteScheduleID, 
321 321
                                null, "");
322 322
        }
......
352 352
    /*if (success) {
353 353
      harvester.addLogEntry(0, 
354 354
                            "Validated: " + documentURL, 
355
                            "ValidateDocSuccess", 
355
                            "harvester.ValidateDocSuccess", 
356 356
                            harvestSiteSchedule.siteScheduleID, 
357 357
                            null, 
358 358
                            "");
359 359
    }
360 360
    else {
361
      harvester.addLogEntry(1, "Error validating document", "ValidateDocError", 
361
      harvester.addLogEntry(1, "Error validating document", "harvester.ValidateDocError", 
362 362
                            harvestSiteSchedule.siteScheduleID, this, "");
363 363
    }*/
364 364
    

Also available in: Unified diff