|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.harvesting.HarvestController
public class HarvestController
This class handles all the things in a single harvest that are not related directly related either to launching Heritrix or to handling JMS messages.
Method Summary | |
---|---|
void |
cleanup()
Clean up this singleton, releasing the ArcRepositoryClient and removing the instance. |
static HarvestController |
getInstance()
Get the instance of the singleton HarvestController. |
void |
runHarvest(HeritrixFiles files)
Creates the actual HeritrixLauncher instance and runs it, after the various setup files have been written. |
HarvestReport |
storeFiles(HeritrixFiles files,
java.lang.StringBuilder errorMessage,
java.util.List<java.io.File> failedFiles)
Controls storing all files involved in a job. |
HeritrixFiles |
writeHarvestFiles(java.io.File crawldir,
Job job,
PersistentJobData.HarvestDefinitionInfo hdi,
java.util.List<MetadataEntry> metadataEntries)
Writes the files involved with a harvests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HarvestController getInstance()
public void cleanup()
public HeritrixFiles writeHarvestFiles(java.io.File crawldir, Job job, PersistentJobData.HarvestDefinitionInfo hdi, java.util.List<MetadataEntry> metadataEntries)
crawldir
- The directory that the crawl should take place
in.job
- The Job object containing various harvest setup
data.hdi
- The object encapsulating documentary information
about the harvest.metadataEntries
- Any metadata entries sent along with the job that
should be stored for later use.
public void runHarvest(HeritrixFiles files) throws ArgumentNotValid
files
- Description of files involved in running Heritrix. Not Null.
ArgumentNotValid
- if an argument isn't valid.public HarvestReport storeFiles(HeritrixFiles files, java.lang.StringBuilder errorMessage, java.util.List<java.io.File> failedFiles) throws ArgumentNotValid
files
- The HeritrixFiles object for this crawl. Not Null.errorMessage
- A place where error messages accumulate. Not Null.failedFiles
- List of files that failed to upload. Not Null.
ArgumentNotValid
- if an argument isn't valid.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |