Interface ClusterTaskScheduler
- All Superinterfaces:
TaskScheduler
- All Known Implementing Classes:
AbstractClusterTaskScheduler,BpipeTaskScheduler,BundledScriptBpipeTaskScheduler,DummyTaskScheduler,HTCondorTaskScheduler,PBSProTaskScheduler,SLURMTaskScheduler,TGCCTaskScheduler,TORQUETaskScheduler
This interface define a cluster task scheduler.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class define a Status result return by the statusJob() method of the interface.static enumThis enum define the values of the status of a job. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupJob(String jobId) Cleanup after a job.voidConfigure the scheduler.Get the scheduler name.Get the status of a job.voidStop a job.submitJob(String jobName, List<String> jobCommand, File jobDirectory, int taskId, int requiredMemory, int requiredProcessors) Submit a job.Methods inherited from interface fr.ens.biologie.genomique.eoulsan.core.schedulers.TaskScheduler
getResult, getStatus, getTaskDoneCount, getTaskRunningCount, getTaskSubmittedCount, getTotalTaskDoneCount, getTotalTaskRunningCount, getTotalTaskSubmittedCount, start, stop, submit, submit, waitEndOfTasks
-
Method Details
-
getSchedulerName
String getSchedulerName()Get the scheduler name.- Returns:
- the name of the scheduler
-
configure
Configure the scheduler.- Parameters:
settings- Eoulsan settings- Throws:
EoulsanException- if an error occurs while configuring the scheduler
-
submitJob
String submitJob(String jobName, List<String> jobCommand, File jobDirectory, int taskId, int requiredMemory, int requiredProcessors) throws IOException Submit a job.- Parameters:
jobName- job namejobCommand- job commandjobDirectory- job directorytaskId- task idrequiredMemory- required memoryrequiredProcessors- required processors- Returns:
- a String with the id of the submitted job
- Throws:
IOException- if an error occurs while submitting job
-
stopJob
Stop a job.- Parameters:
jobId- job id- Throws:
IOException- if an error occurs while stopping the job
-
statusJob
Get the status of a job.- Parameters:
jobId- job id- Returns:
- a StatusResult object
- Throws:
IOException- if an error occurs while getting the status of the job
-
cleanupJob
Cleanup after a job.- Parameters:
jobId- job id- Throws:
IOException- if an error occurs while cleanup
-