Class TestDockerHandlerProvider
- java.lang.Object
-
- com.atlassian.bamboo.plugins.testutils.docker.TestDockerHandlerProvider
-
- All Implemented Interfaces:
DockerHandlerProvider
,InitablePluginModule<DockerHandlerModuleDescriptor>
,BambooPluginModule
public class TestDockerHandlerProvider extends Object implements DockerHandlerProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
EPHEMERAL_AGENTS_TEST
-
Constructor Summary
Constructors Constructor Description TestDockerHandlerProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DockerHandler
getHandler(@NotNull Map webFragmentsContextMap, boolean create)
DockerHandler
getHandler(@Nullable BuildDefinition job, boolean create)
DockerHandler
getHandler(@Nullable Environment environment, boolean create)
String
getIsolationType()
String
getIsolationTypeLabel(com.opensymphony.xwork2.TextProvider textProvider)
void
init(@NotNull DockerHandlerModuleDescriptor moduleDescriptor)
Initialises the Plugin with the plugin module descriptorboolean
isCustomDedicatedAgentExpected(@NotNull BuildDefinition buildDefinition)
If an environment is configured by this plugin to use ephemeral agents.boolean
isCustomDedicatedAgentExpected(@NotNull Map<String,String> environmentCustomConfig)
If an environment is configured by this plugin to use ephemeral agents.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.build.docker.DockerHandlerProvider
getEnvironmentConfigurationKey
-
-
-
-
Field Detail
-
EPHEMERAL_AGENTS_TEST
public static final String EPHEMERAL_AGENTS_TEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(@NotNull @NotNull DockerHandlerModuleDescriptor moduleDescriptor)
Description copied from interface:InitablePluginModule
Initialises the Plugin with the plugin module descriptor- Specified by:
init
in interfaceInitablePluginModule<DockerHandlerModuleDescriptor>
- Parameters:
moduleDescriptor
- Plugin module descriptor
-
getIsolationType
public String getIsolationType()
- Specified by:
getIsolationType
in interfaceDockerHandlerProvider
-
getIsolationTypeLabel
public String getIsolationTypeLabel(com.opensymphony.xwork2.TextProvider textProvider)
- Specified by:
getIsolationTypeLabel
in interfaceDockerHandlerProvider
-
getHandler
public DockerHandler getHandler(@Nullable @Nullable BuildDefinition job, boolean create)
- Specified by:
getHandler
in interfaceDockerHandlerProvider
-
getHandler
public DockerHandler getHandler(@Nullable @Nullable Environment environment, boolean create)
- Specified by:
getHandler
in interfaceDockerHandlerProvider
-
getHandler
public DockerHandler getHandler(@NotNull @NotNull Map webFragmentsContextMap, boolean create)
- Specified by:
getHandler
in interfaceDockerHandlerProvider
-
isCustomDedicatedAgentExpected
public boolean isCustomDedicatedAgentExpected(@NotNull @NotNull BuildDefinition buildDefinition)
Description copied from interface:DockerHandlerProvider
If an environment is configured by this plugin to use ephemeral agents.- Specified by:
isCustomDedicatedAgentExpected
in interfaceDockerHandlerProvider
-
isCustomDedicatedAgentExpected
public boolean isCustomDedicatedAgentExpected(@NotNull @NotNull Map<String,String> environmentCustomConfig)
Description copied from interface:DockerHandlerProvider
If an environment is configured by this plugin to use ephemeral agents. The passed configuration won't be null, but it can be empty.- Specified by:
isCustomDedicatedAgentExpected
in interfaceDockerHandlerProvider
-
-