BatchTaskContainerSettings Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchTaskContainerSettings
- com.
Implements
public final class BatchTaskContainerSettings
implements JsonSerializable<BatchTaskContainerSettings>
The container settings for a Task.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchTaskContainerSettings(String imageName) |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
List<Container |
getContainerHostBatchBindMounts()
Get the container |
| String |
getContainerRunOptions()
Get the container |
| String |
getImageName()
Get the image |
|
Container |
getRegistry()
Get the registry property: The private registry which contains the container Image. |
|
Container |
getWorkingDirectory()
Get the working |
|
Batch |
setContainerHostBatchBindMounts(List<ContainerHostBatchBindMountEntry> containerHostBatchBindMounts)
Set the container |
|
Batch |
setContainerRunOptions(String containerRunOptions)
Set the container |
|
Batch |
setRegistry(ContainerRegistryReference registry)
Set the registry property: The private registry which contains the container Image. |
|
Batch |
setWorkingDirectory(ContainerWorkingDirectory workingDirectory)
Set the working |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchTaskContainerSettings
public BatchTaskContainerSettings(String imageName)
Creates an instance of BatchTaskContainerSettings class.
Parameters:
Method Details
fromJson
public static BatchTaskContainerSettings fromJson(JsonReader jsonReader)
Reads an instance of BatchTaskContainerSettings from the JsonReader.
Parameters:
Returns:
Throws:
getContainerHostBatchBindMounts
public List<ContainerHostBatchBindMountEntry> getContainerHostBatchBindMounts()
Get the containerHostBatchBindMounts property: The paths you want to mounted to container task. If this array is null or be not present, container task will mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty.
Returns:
getContainerRunOptions
public String getContainerRunOptions()
Get the containerRunOptions property: Additional options to the container create command. These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
Returns:
getImageName
public String getImageName()
Get the imageName property: The Image to use to create the container in which the Task will run. This is the full Image reference, as would be specified to "docker pull". If no tag is provided as part of the Image name, the tag ":latest" is used as a default.
Returns:
getRegistry
public ContainerRegistryReference getRegistry()
Get the registry property: The private registry which contains the container Image. This setting can be omitted if was already provided at Pool creation.
Returns:
getWorkingDirectory
public ContainerWorkingDirectory getWorkingDirectory()
Get the workingDirectory property: The location of the container Task working directory. The default is 'taskWorkingDirectory'.
Returns:
setContainerHostBatchBindMounts
public BatchTaskContainerSettings setContainerHostBatchBindMounts(List<ContainerHostBatchBindMountEntry> containerHostBatchBindMounts)
Set the containerHostBatchBindMounts property: The paths you want to mounted to container task. If this array is null or be not present, container task will mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty.
Parameters:
Returns:
setContainerRunOptions
public BatchTaskContainerSettings setContainerRunOptions(String containerRunOptions)
Set the containerRunOptions property: Additional options to the container create command. These additional options are supplied as arguments to the "docker create" command, in addition to those controlled by the Batch Service.
Parameters:
Returns:
setRegistry
public BatchTaskContainerSettings setRegistry(ContainerRegistryReference registry)
Set the registry property: The private registry which contains the container Image. This setting can be omitted if was already provided at Pool creation.
Parameters:
Returns:
setWorkingDirectory
public BatchTaskContainerSettings setWorkingDirectory(ContainerWorkingDirectory workingDirectory)
Set the workingDirectory property: The location of the container Task working directory. The default is 'taskWorkingDirectory'.
Parameters:
Returns: