public class MPIController extends java.lang.Object implements IController
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
createJob(java.lang.String jobWorkingDirectory,
java.lang.String twister2Home,
JobAPI.Job job)
Create a slurm job.
|
void |
initialize(Config mConfig)
This will initialize controller using config file.
|
boolean |
kill(JobAPI.Job job) |
protected boolean |
runProcess(java.lang.String jobWorkingDirectory,
java.lang.String[] cmd,
java.lang.StringBuilder stderr)
Submit the job
resubmit it if it fails
|
boolean |
start(JobAPI.Job job) |
public void initialize(Config mConfig)
IController
initialize
in interface IController
public void close()
close
in interface IController
public boolean start(JobAPI.Job job)
start
in interface IController
public boolean kill(JobAPI.Job job)
kill
in interface IController
public boolean createJob(java.lang.String jobWorkingDirectory, java.lang.String twister2Home, JobAPI.Job job)
jobWorkingDirectory
- working directoryprotected boolean runProcess(java.lang.String jobWorkingDirectory, java.lang.String[] cmd, java.lang.StringBuilder stderr)