Class BpipeTaskScheduler
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.schedulers.AbstractTaskScheduler
fr.ens.biologie.genomique.eoulsan.core.schedulers.clusters.AbstractClusterTaskScheduler
fr.ens.biologie.genomique.eoulsan.core.schedulers.clusters.BpipeTaskScheduler
- All Implemented Interfaces:
ClusterTaskScheduler,TaskScheduler
- Direct Known Subclasses:
BundledScriptBpipeTaskScheduler,DummyTaskScheduler,TGCCTaskScheduler
This class allow to submit, stop and get the status of jobs using Bpipe scheduler wrappers.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Nested Class Summary
Nested classes/interfaces inherited from class fr.ens.biologie.genomique.eoulsan.core.schedulers.clusters.AbstractClusterTaskScheduler
AbstractClusterTaskScheduler.ProcessThreadOutputNested classes/interfaces inherited from interface fr.ens.biologie.genomique.eoulsan.core.schedulers.clusters.ClusterTaskScheduler
ClusterTaskScheduler.StatusResult, ClusterTaskScheduler.StatusValue -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class fr.ens.biologie.genomique.eoulsan.core.schedulers.clusters.AbstractClusterTaskScheduler
stop, submitMethods inherited from class fr.ens.biologie.genomique.eoulsan.core.schedulers.AbstractTaskScheduler
getResult, getStatus, getTaskDoneCount, getTaskRunningCount, getTaskSubmittedCount, getTotalTaskDoneCount, getTotalTaskRunningCount, getTotalTaskSubmittedCount, start, submit, waitEndOfTasksMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.ens.biologie.genomique.eoulsan.core.schedulers.clusters.ClusterTaskScheduler
getSchedulerNameMethods inherited from interface fr.ens.biologie.genomique.eoulsan.core.schedulers.TaskScheduler
getResult, getStatus, getTaskDoneCount, getTaskRunningCount, getTaskSubmittedCount, getTotalTaskDoneCount, getTotalTaskRunningCount, getTotalTaskSubmittedCount, start, submit, waitEndOfTasks
-
Constructor Details
-
BpipeTaskScheduler
public BpipeTaskScheduler()
-
-
Method Details
-
configure
Description copied from interface:ClusterTaskSchedulerConfigure the scheduler.- Parameters:
settings- Eoulsan settings- Throws:
EoulsanException- if an error occurs while configuring the scheduler
-
submitJob
public String submitJob(String jobName, List<String> jobCommand, File jobDirectory, int taskId, int requiredMemory, int requiredProcessors) throws IOException Description copied from interface:ClusterTaskSchedulerSubmit 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
Description copied from interface:ClusterTaskSchedulerStop a job.- Parameters:
jobId- job id- Throws:
IOException- if an error occurs while stopping the job
-
statusJob
Description copied from interface:ClusterTaskSchedulerGet 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
Description copied from interface:ClusterTaskSchedulerCleanup after a job.- Parameters:
jobId- job id- Throws:
IOException- if an error occurs while cleanup
-