Class DockerExecutorFactory
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.jobmanager.DockerExecutorFactory
- All Implemented Interfaces:
JobExecuterFactory
public class DockerExecutorFactory extends Object implements JobExecuterFactory
Executor factory that uses Docker to run jobs.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
DockerExecutorFactory.Executor
Job executor that uses Docker. -
Constructor Summary
Constructors Constructor Description DockerExecutorFactory()
Create a new docker factory. -
Method Summary
Modifier and Type Method Description JobExecuter
createJobExecuter(JobManager manager, URL baseUrl)
Creates a newJobExecuter
.protected void
executorFinished()
Callback when the executor is finished.
-
Constructor Details
-
DockerExecutorFactory
public DockerExecutorFactory()Create a new docker factory.
-
-
Method Details
-
createJobExecuter
Description copied from interface:JobExecuterFactory
Creates a newJobExecuter
.- Specified by:
createJobExecuter
in interfaceJobExecuterFactory
- Parameters:
manager
- The manager requesting the creationbaseUrl
- The URL of the manager- Returns:
- The new executer
- Throws:
IOException
- If there is an error creating the executer
-
executorFinished
protected void executorFinished()Callback when the executor is finished.
-