Package com.powsybl.computation.slurm
Class AbstractTask.CompletableMonitoredJob
java.lang.Object
com.powsybl.computation.slurm.AbstractTask.CompletableMonitoredJob
- All Implemented Interfaces:
MonitoredJob
- Enclosing class:
- AbstractTask
-
Method Summary
Modifier and TypeMethodDescriptionvoid
done()
To be called by a monitor when the job has ended successfully.void
failed()
To be called by a monitor when the job has failed.long
getJobId()
This job ID in slurmvoid
To be called if the job is detected to have been killed before completing.void
setCounter
(int counter)
-
Method Details
-
setCounter
public void setCounter(int counter) -
getJobId
public long getJobId()This job ID in slurm- Specified by:
getJobId
in interfaceMonitoredJob
-
done
public void done()To be called by a monitor when the job has ended successfully.- Specified by:
done
in interfaceMonitoredJob
-
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 interfaceMonitoredJob
-
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 interfaceMonitoredJob
-