|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.harvester.scheduler.JobSupervisor
public class JobSupervisor
Responsible for cleaning obsolete jobs, see start()
for details.
Constructor Summary | |
---|---|
JobSupervisor()
|
Method Summary | |
---|---|
(package private) void |
cleanOldJobs()
Stops any job that has been in status STARTED a very long time defined by the HarvesterSettings.JOB_TIMEOUT_TIME setting. |
(package private) void |
rescheduleLeftOverJobs()
Reschedule all jobs with JobStatus SUBMITTED. |
void |
shutdown()
The inverse of the start() method. |
void |
start()
Starts the rescheduling of left over jobs (in a separate thread). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JobSupervisor()
Method Detail |
---|
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, etc
shutdown
in interface ComponentLifeCycle
void rescheduleLeftOverJobs()
void cleanOldJobs()
HarvesterSettings.JOB_TIMEOUT_TIME
setting.
Package protected to allow unit testing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |