Class DockerRunContainerTaskProperties
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.model.task.TaskProperties
-
- com.atlassian.bamboo.specs.model.task.docker.AbstractDockerTaskProperties
-
- com.atlassian.bamboo.specs.model.task.docker.DockerRunContainerTaskProperties
-
- All Implemented Interfaces:
EntityProperties
@Immutable public final class DockerRunContainerTaskProperties extends AbstractDockerTaskProperties
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_SERVICE_TIMEOUTstatic ValidationContextVALIDATION_CONTEXT-
Fields inherited from class com.atlassian.bamboo.specs.model.task.docker.AbstractDockerTaskProperties
environmentVariables, MODULE_KEY, workingSubdirectory
-
-
Constructor Summary
Constructors Constructor Description DockerRunContainerTaskProperties(@Nullable String description, boolean enabled, @NotNull String imageName, boolean detachedContainer, @Nullable String containerName, @NotNull Map<Integer,Integer> portMappings, boolean waitToStart, @Nullable String serviceURLPattern, long serviceTimeout, boolean linkToDetachedContainers, @Nullable String containerEnvironmentVariables, @Nullable String containerCommand, @Nullable String containerWorkingDirectory, @Nullable String additionalArguments, @NotNull Map<String,String> volumeMappings, @Nullable String environmentVariables, @Nullable String workingSubdirectory, @NotNull List<RequirementProperties> requirements, @NotNull List<? extends ConditionProperties> conditions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)@Nullable StringgetAdditionalArguments()@Nullable StringgetContainerCommand()@Nullable StringgetContainerEnvironmentVariables()@Nullable StringgetContainerName()@Nullable StringgetContainerWorkingDirectory()@NotNull StringgetImageName()Map<Integer,Integer>getPortMappings()longgetServiceTimeout()StringgetServiceURLPattern()@NotNull Map<String,String>getVolumeMappings()inthashCode()booleanisDetachedContainer()booleanisLinkToDetachedContainers()booleanisWaitToStart()voidvalidate()-
Methods inherited from class com.atlassian.bamboo.specs.model.task.docker.AbstractDockerTaskProperties
getAtlassianPlugin, getEnvironmentVariables, getWorkingSubdirectory
-
Methods inherited from class com.atlassian.bamboo.specs.api.model.task.TaskProperties
applicableTo, getConditions, getDescription, getRequirements, isEnabled, toString
-
-
-
-
Field Detail
-
VALIDATION_CONTEXT
public static final ValidationContext VALIDATION_CONTEXT
-
DEFAULT_SERVICE_TIMEOUT
public static final long DEFAULT_SERVICE_TIMEOUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DockerRunContainerTaskProperties
public DockerRunContainerTaskProperties(@Nullable @Nullable String description, boolean enabled, @NotNull @NotNull String imageName, boolean detachedContainer, @Nullable @Nullable String containerName, @NotNull @NotNull Map<Integer,Integer> portMappings, boolean waitToStart, @Nullable @Nullable String serviceURLPattern, long serviceTimeout, boolean linkToDetachedContainers, @Nullable @Nullable String containerEnvironmentVariables, @Nullable @Nullable String containerCommand, @Nullable @Nullable String containerWorkingDirectory, @Nullable @Nullable String additionalArguments, @NotNull @NotNull Map<String,String> volumeMappings, @Nullable @Nullable String environmentVariables, @Nullable @Nullable String workingSubdirectory, @NotNull @NotNull List<RequirementProperties> requirements, @NotNull @NotNull List<? extends ConditionProperties> conditions) throws PropertiesValidationException- Throws:
PropertiesValidationException
-
-
Method Detail
-
getImageName
@NotNull public @NotNull String getImageName()
-
isDetachedContainer
public boolean isDetachedContainer()
-
getContainerName
@Nullable public @Nullable String getContainerName()
-
isWaitToStart
public boolean isWaitToStart()
-
getServiceURLPattern
public String getServiceURLPattern()
-
getServiceTimeout
public long getServiceTimeout()
-
isLinkToDetachedContainers
public boolean isLinkToDetachedContainers()
-
getContainerEnvironmentVariables
@Nullable public @Nullable String getContainerEnvironmentVariables()
-
getContainerCommand
@Nullable public @Nullable String getContainerCommand()
-
getContainerWorkingDirectory
@Nullable public @Nullable String getContainerWorkingDirectory()
-
getAdditionalArguments
@Nullable public @Nullable String getAdditionalArguments()
-
validate
public void validate()
- Specified by:
validatein interfaceEntityProperties- Overrides:
validatein classTaskProperties
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractDockerTaskProperties
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractDockerTaskProperties
-
-