dk.netarkivet.harvester.scheduler
Class HarvestJobGenerator.JobGeneratorTask

java.lang.Object
  extended by dk.netarkivet.harvester.scheduler.HarvestJobGenerator.JobGeneratorTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
HarvestJobGenerator

static class HarvestJobGenerator.JobGeneratorTask
extends java.lang.Object
implements java.lang.Runnable

Contains the functionality for the individual JobGenerations


Constructor Summary
HarvestJobGenerator.JobGeneratorTask()
           
 
Method Summary
(package private) static void generateJobs(java.util.Date timeToGenerateJobsFor)
          Check if jobs should be generated for any ready harvest definitions for the specified time.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HarvestJobGenerator.JobGeneratorTask

HarvestJobGenerator.JobGeneratorTask()
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

generateJobs

static void generateJobs(java.util.Date timeToGenerateJobsFor)
Check if jobs should be generated for any ready harvest definitions for the specified time.

Parameters:
timeToGenerateJobsFor - Jobs will be generated which should be run at this time. Note: In a production system the provided time will normally be current time, but during testing we need to simulated other points-in-time