public class JobSupervisor extends Object implements ComponentLifeCycle
start()
for details.Constructor and Description |
---|
JobSupervisor(javax.inject.Provider<JobDAO> jobDaoProvider,
Long jobTimeoutTime) |
Modifier and Type | Method and Description |
---|---|
void |
shutdown()
The inverse of the
start() method. |
void |
start()
Starts the rescheduling of left over jobs (in a separate thread).
|
public JobSupervisor(javax.inject.Provider<JobDAO> jobDaoProvider, Long jobTimeoutTime)
jobDaoProvider
- Used for accessing the jobdao.jobTimeoutTime
- timeout in seconds.public void start()
HarvesterSettings.JOB_TIMEOUT_TIME
.
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–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.