public class HarvestJobGenerator extends Object implements ComponentLifeCycle
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.Modifier and Type | Field and Description |
---|---|
protected static Set<Long> |
harvestDefinitionsBeingScheduled
The set of HDs (or rather their OIDs) that are currently being scheduled in a separate thread.
|
protected static Map<Long,Long> |
schedulingStartedMap
Used the store the currenttimeMillis when the scheduling of a particular harvestdefinition # started or when last
a warning was issued.
|
Constructor and Description |
---|
HarvestJobGenerator(HarvestChannelRegistry harvestChannelRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
shutdown()
The inverse of the
start() method. |
void |
start()
Starts the job generation scheduler.
|
protected static Set<Long> harvestDefinitionsBeingScheduled
protected static Map<Long,Long> schedulingStartedMap
public HarvestJobGenerator(HarvestChannelRegistry harvestChannelRegistry)
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, etcshutdown
in interface ComponentLifeCycle
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.