Class HarvestJobManager
- java.lang.Object
-
- dk.netarkivet.common.lifecycle.LifeCycleComponent
-
- dk.netarkivet.harvester.scheduler.HarvestJobManager
-
- All Implemented Interfaces:
ComponentLifeCycle
public class HarvestJobManager extends LifeCycleComponent
Handles the dispatching of scheduled harvest to the harvest servers based on the harvests defined in the database.
-
-
Constructor Summary
Constructors Constructor Description HarvestJobManager()
Creates the components handling the harvest job management and hooks them up to theHarvestJobManager
s lifecycle.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.inject.Provider<HarvestDefinitionDAO>
getHarvestDefinitionDAOProvider()
static javax.inject.Provider<JMSConnection>
getJMSConnectionProvider()
static javax.inject.Provider<JobDAO>
getJobDAOProvider()
static javax.inject.Provider<Notifications>
getNotificationsProvider()
void
shutdown()
The inverse of thestart()
method.-
Methods inherited from class dk.netarkivet.common.lifecycle.LifeCycleComponent
addChild, start
-
-
-
-
Method Detail
-
shutdown
public void shutdown()
Description copied from interface:ComponentLifeCycle
The inverse of thestart()
method. Contains functionality for deallocation of ressources, clearing data, closing connections, stopping threads, etc- Specified by:
shutdown
in interfaceComponentLifeCycle
- Overrides:
shutdown
in classLifeCycleComponent
-
getJMSConnectionProvider
public static javax.inject.Provider<JMSConnection> getJMSConnectionProvider()
-
getJobDAOProvider
public static javax.inject.Provider<JobDAO> getJobDAOProvider()
-
getHarvestDefinitionDAOProvider
public static javax.inject.Provider<HarvestDefinitionDAO> getHarvestDefinitionDAOProvider()
-
getNotificationsProvider
public static javax.inject.Provider<Notifications> getNotificationsProvider()
-
-