Class DockerContainerControllerImpl
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.docker.DockerContainerControllerImpl
-
- All Implemented Interfaces:
DockerContainerController
,AutoCloseable
public class DockerContainerControllerImpl extends Object implements DockerContainerController
-
-
Field Summary
Fields Modifier and Type Field Description static int
CANT_CD_TO_DIRECTORY
static String
DOCKER_CAPABILITY
-
Fields inherited from interface com.atlassian.bamboo.v2.build.agent.docker.DockerContainerController
DOCKER_CONTAINER_NAME_VAR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DockerContainerControllerImpl(@NotNull CommonContext context, @NotNull DockerContainerService dockerContainerService, @NotNull ProcessContextFactory processContextFactory, @NotNull CapabilityContext capabilityContext, @NotNull CustomVariableContext customVariableContext, @NotNull ProcessService processService, @NotNull HomeDirectoryLayout homeDirectoryLayout)
-
-
-
Field Detail
-
DOCKER_CAPABILITY
public static final String DOCKER_CAPABILITY
- See Also:
- Constant Field Values
-
CANT_CD_TO_DIRECTORY
public static final int CANT_CD_TO_DIRECTORY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DockerContainerControllerImpl
protected DockerContainerControllerImpl(@NotNull @NotNull CommonContext context, @NotNull @NotNull DockerContainerService dockerContainerService, @NotNull @NotNull ProcessContextFactory processContextFactory, @NotNull @NotNull CapabilityContext capabilityContext, @NotNull @NotNull CustomVariableContext customVariableContext, @NotNull @NotNull ProcessService processService, @NotNull @NotNull HomeDirectoryLayout homeDirectoryLayout)
-
-
Method Detail
-
startContainerIfRequired
public void startContainerIfRequired() throws DockerException
- Specified by:
startContainerIfRequired
in interfaceDockerContainerController
- Throws:
DockerException
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-