public class DockerComputerIOLauncher extends DockerComputerLauncher
Modifier and Type | Class and Description |
---|---|
static class |
DockerComputerIOLauncher.DescriptorImpl |
Modifier and Type | Field and Description |
---|---|
protected String |
javaPath |
protected String |
jvmOpts |
Constructor and Description |
---|
DockerComputerIOLauncher() |
Modifier and Type | Method and Description |
---|---|
void |
afterContainerCreate(com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.DockerClient client,
String containerId)
Called after container was created.
|
void |
afterDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener) |
void |
appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd)
Contribute container parameters needed for launcher.
|
void |
beforeDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener) |
String |
getJavaPath() |
String |
getJvmOpts() |
hudson.slaves.ComputerLauncher |
getLauncher() |
DockerComputerLauncher |
getPreparedLauncher(String cloudId,
DockerSlaveTemplate dockerSlaveTemplate,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse ir)
Return valid configured launcher that will be used for launching slave
|
void |
launch(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener) |
void |
setJavaPath(String javaPath) |
void |
setJvmOpts(String jvmOpts) |
setLauncher, waitUp
@DataBoundSetter public void setJavaPath(String javaPath)
@DataBoundSetter public void setJvmOpts(String jvmOpts)
public void afterContainerCreate(com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.DockerClient client, String containerId) throws IOException
DockerComputerLauncher
afterContainerCreate
in class DockerComputerLauncher
IOException
public void launch(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener) throws IOException, InterruptedException
launch
in class hudson.slaves.DelegatingComputerLauncher
IOException
InterruptedException
public void afterDisconnect(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
afterDisconnect
in class hudson.slaves.DelegatingComputerLauncher
public void beforeDisconnect(hudson.slaves.SlaveComputer computer, hudson.model.TaskListener listener)
beforeDisconnect
in class hudson.slaves.DelegatingComputerLauncher
public DockerComputerLauncher getPreparedLauncher(String cloudId, DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse ir)
DockerComputerLauncher
getPreparedLauncher
in class DockerComputerLauncher
public void appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd) throws IOException
DockerComputerLauncher
appendContainerConfig
in class DockerComputerLauncher
IOException
public hudson.slaves.ComputerLauncher getLauncher()
getLauncher
in class hudson.slaves.DelegatingComputerLauncher
Copyright © 2016–2020. All rights reserved.