Class AbstractTask.CompletableMonitoredJob

java.lang.Object
com.powsybl.computation.slurm.AbstractTask.CompletableMonitoredJob
All Implemented Interfaces:
MonitoredJob
Enclosing class:
AbstractTask

public class AbstractTask.CompletableMonitoredJob extends Object implements MonitoredJob
  • Method Details

    • setCounter

      public void setCounter(int counter)
    • getJobId

      public long getJobId()
      This job ID in slurm
      Specified by:
      getJobId in interface MonitoredJob
    • done

      public void done()
      To be called by a monitor when the job has ended successfully.
      Specified by:
      done in interface MonitoredJob
    • failed

      public void failed()
      To be called by a monitor when the job has failed.

      The implementation asks for the interruption of all other jobs, but the task will complete normally and generate an execution report.

      Specified by:
      failed in interface MonitoredJob
    • interrupted

      public void interrupted()
      To be called if the job is detected to have been killed before completing.

      The implementation completes the task with an exception, and asks for interruption of all jobs.

      Specified by:
      interrupted in interface MonitoredJob