dk.netarkivet.harvester.scheduler
Class HarvestJobGenerator

java.lang.Object
  extended by dk.netarkivet.harvester.scheduler.HarvestJobGenerator
All Implemented Interfaces:
ComponentLifeCycle

public class HarvestJobGenerator
extends java.lang.Object
implements ComponentLifeCycle

Handles the generation of new jobs based on the harvest definitions in persistent storage. The HarvestJobGenerator continuously scans the harvest definition database for harvest which should be run now. If a HD defines a harvest which should be run, a Harvest Job is created in the harvest job database.


Nested Class Summary
(package private) static class HarvestJobGenerator.JobGeneratorTask
          Contains the functionality for the individual JobGenerations
 
Constructor Summary
HarvestJobGenerator()
           
 
Method Summary
(package private) static void clearGeneratingJobs()
           
 void shutdown()
          The inverse of the start() method.
 void start()
          Starts the job generation scheduler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestJobGenerator

public HarvestJobGenerator()
Method Detail

start

public void start()
Starts the job generation scheduler.

Specified by:
start in interface ComponentLifeCycle

shutdown

public void shutdown()
Description copied from interface: ComponentLifeCycle
The inverse of the start() method. Contains functionality for deallocation of ressources, clearing data, closing connections, stopping threads, etc

Specified by:
shutdown in interface ComponentLifeCycle

clearGeneratingJobs

static void clearGeneratingJobs()