|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.harvester.scheduler.HarvestScheduler
public class HarvestScheduler
This class handles scheduling of heritrix jobs. The scheduler loads all active harvest definitions and extracts the scheduling information for each definition. When a harvest definition is scheduled to start the scheduler creates the corresponding heritrix jobs and submits these to the active HarvestServers. It also handles backup and makes sure backup is not performed while jobs are being scheduled. This class is not Threadsafe.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
The logger to use. |
Method Summary | |
---|---|
void |
cleanup()
Release allocated resources (JMS connections), stop scheduling harvests, and nullify the singleton, all without logging. |
void |
close()
Release allocated resources (JMS connections), stop scheduling harvests, and nullify the singleton. |
static HarvestScheduler |
getInstance()
Get the unique instance of the harvest scheduler. |
void |
run()
Start scheduling of harvest definitions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
Method Detail |
---|
public static HarvestScheduler getInstance()
public void run()
public void close()
public void cleanup()
cleanup
in interface CleanupIF
CleanupIF.cleanup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |