|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.harvester.scheduler.HarvestJobGenerator
public class HarvestJobGenerator
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. |
Field Summary | |
---|---|
protected static java.util.Set<java.lang.Long> |
harvestDefinitionsBeingScheduled
The set of HDs (or rather their OIDs) that are currently being scheduled in a separate thread. |
protected static java.util.Map<java.lang.Long,java.lang.Long> |
schedulingStartedMap
Used the store the currenttimeMillis when the scheduling of a particular harvestdefinition # started or when last a warning was issued. |
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 |
Field Detail |
---|
protected static java.util.Set<java.lang.Long> harvestDefinitionsBeingScheduled
protected static java.util.Map<java.lang.Long,java.lang.Long> schedulingStartedMap
Constructor Detail |
---|
public HarvestJobGenerator()
Method Detail |
---|
public void start()
start
in interface ComponentLifeCycle
public void shutdown()
ComponentLifeCycle
start()
method. Contains functionality
for deallocation of ressources, clearing data, closing connections,
stopping threads, etc
shutdown
in interface ComponentLifeCycle
static void clearGeneratingJobs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |