Interface ClusterTaskScheduler

All Superinterfaces:
TaskScheduler
All Known Implementing Classes:
AbstractClusterTaskScheduler, BpipeTaskScheduler, BundledScriptBpipeTaskScheduler, DummyTaskScheduler, HTCondorTaskScheduler, PBSProTaskScheduler, SLURMTaskScheduler, TGCCTaskScheduler, TORQUETaskScheduler

public interface ClusterTaskScheduler extends TaskScheduler
This interface define a cluster task scheduler.
Since:
2.0
Author:
Laurent Jourdren
  • Method Details

    • getSchedulerName

      String getSchedulerName()
      Get the scheduler name.
      Returns:
      the name of the scheduler
    • configure

      void configure(Settings settings) throws EoulsanException
      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 name
      jobCommand - job command
      jobDirectory - job directory
      taskId - task id
      requiredMemory - required memory
      requiredProcessors - required processors
      Returns:
      a String with the id of the submitted job
      Throws:
      IOException - if an error occurs while submitting job
    • stopJob

      void stopJob(String jobId) throws IOException
      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

      void cleanupJob(String jobId) throws IOException
      Cleanup after a job.
      Parameters:
      jobId - job id
      Throws:
      IOException - if an error occurs while cleanup