@Beta
public abstract class DockerComputerLauncher
extends hudson.slaves.DelegatingComputerLauncher
like DelegatingComputerLauncher
Modifier | Constructor and Description |
---|---|
protected |
DockerComputerLauncher(hudson.slaves.ComputerLauncher launcher) |
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.
|
abstract void |
appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd)
Contribute container parameters needed for launcher.
|
abstract 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 |
setLauncher(hudson.slaves.ComputerLauncher launcher) |
boolean |
waitUp(String cloudId,
DockerSlaveTemplate dockerSlaveTemplate,
com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse containerInspect)
Wait until slave is up and ready for connection.
|
afterDisconnect, beforeDisconnect, getLauncher, launch
protected DockerComputerLauncher(hudson.slaves.ComputerLauncher launcher)
public void afterContainerCreate(com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.DockerClient client, String containerId) throws IOException
IOException
public abstract DockerComputerLauncher getPreparedLauncher(String cloudId, DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse ir)
public abstract void appendContainerConfig(DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.CreateContainerCmd createContainerCmd) throws IOException
IOException
public boolean waitUp(String cloudId, DockerSlaveTemplate dockerSlaveTemplate, com.github.kostyasha.yad_docker_java.com.github.dockerjava.api.command.InspectContainerResponse containerInspect)
public void setLauncher(hudson.slaves.ComputerLauncher launcher)
Copyright © 2016–2020. All rights reserved.