Class MultiThreadTaskScheduler
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.core.schedulers.AbstractTaskScheduler
-
- fr.ens.biologie.genomique.eoulsan.core.schedulers.MultiThreadTaskScheduler
-
- All Implemented Interfaces:
TaskScheduler
,Runnable
public class MultiThreadTaskScheduler extends AbstractTaskScheduler implements Runnable
This class define a muti thread scheduler.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description MultiThreadTaskScheduler(int threadNumber)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
pause()
void
resume()
void
run()
void
start()
Start the scheduler.void
stop()
Stop the scheduler.void
submit(Step step, TaskContextImpl context)
Submit a context to execute.-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.core.schedulers.AbstractTaskScheduler
afterExecuteTask, beforeExecuteTask, executeTask, getResult, getStatus, getStep, getStep, getTaskDoneCount, getTaskRunningCount, getTaskSubmittedCount, getTotalTaskDoneCount, getTotalTaskRunningCount, getTotalTaskSubmittedCount, isStarted, isStopped, submit, waitEndOfTasks
-
-
-
-
Method Detail
-
submit
public void submit(Step step, TaskContextImpl context)
Description copied from interface:TaskScheduler
Submit a context to execute.- Specified by:
submit
in interfaceTaskScheduler
- Overrides:
submit
in classAbstractTaskScheduler
- Parameters:
step
- step related to the contextcontext
- context to execute
-
start
public void start()
Description copied from interface:TaskScheduler
Start the scheduler.- Specified by:
start
in interfaceTaskScheduler
- Overrides:
start
in classAbstractTaskScheduler
-
stop
public void stop()
Description copied from interface:TaskScheduler
Stop the scheduler.- Specified by:
stop
in interfaceTaskScheduler
- Overrides:
stop
in classAbstractTaskScheduler
-
pause
public void pause()
-
resume
public void resume()
-
-