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
DockerComputerLauncherafterContainerCreate in class DockerComputerLauncherIOExceptionpublic void launch(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
launch in class hudson.slaves.DelegatingComputerLauncherIOExceptionInterruptedExceptionpublic void afterDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener)
afterDisconnect in class hudson.slaves.DelegatingComputerLauncherpublic void beforeDisconnect(hudson.slaves.SlaveComputer computer,
hudson.model.TaskListener listener)
beforeDisconnect in class hudson.slaves.DelegatingComputerLauncherpublic DockerComputerLauncher getPreparedLauncher(String cloudId, DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse ir)
DockerComputerLaunchergetPreparedLauncher in class DockerComputerLauncherpublic void appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd) throws IOException
DockerComputerLauncherappendContainerConfig in class DockerComputerLauncherIOExceptionpublic hudson.slaves.ComputerLauncher getLauncher()
getLauncher in class hudson.slaves.DelegatingComputerLauncherCopyright © 2016–2020. All rights reserved.