public class StartTask extends Object
| Constructor and Description |
|---|
StartTask() |
| Modifier and Type | Method and Description |
|---|---|
String |
commandLine()
Get the command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion.
|
TaskContainerSettings |
containerSettings()
Get when this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all task environment variables are mapped into the container, and the task command line is executed in the container.
|
List<EnvironmentSetting> |
environmentSettings()
Get the environmentSettings value.
|
Integer |
maxTaskRetryCount()
Get the Batch service retries a task if its exit code is nonzero.
|
List<ResourceFile> |
resourceFiles()
Get the resourceFiles value.
|
UserIdentity |
userIdentity()
Get if omitted, the task runs as a non-administrative user unique to the task.
|
Boolean |
waitForSuccess()
Get if true and the start task fails on a compute node, the Batch service retries the start task up to its maximum retry count (maxTaskRetryCount).
|
StartTask |
withCommandLine(String commandLine)
Set the command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion.
|
StartTask |
withContainerSettings(TaskContainerSettings containerSettings)
Set when this is specified, all directories recursively below the AZ_BATCH_NODE_ROOT_DIR (the root of Azure Batch directories on the node) are mapped into the container, all task environment variables are mapped into the container, and the task command line is executed in the container.
|
StartTask |
withEnvironmentSettings(List<EnvironmentSetting> environmentSettings)
Set the environmentSettings value.
|
StartTask |
withMaxTaskRetryCount(Integer maxTaskRetryCount)
Set the Batch service retries a task if its exit code is nonzero.
|
StartTask |
withResourceFiles(List<ResourceFile> resourceFiles)
Set the resourceFiles value.
|
StartTask |
withUserIdentity(UserIdentity userIdentity)
Set if omitted, the task runs as a non-administrative user unique to the task.
|
StartTask |
withWaitForSuccess(Boolean waitForSuccess)
Set if true and the start task fails on a compute node, the Batch service retries the start task up to its maximum retry count (maxTaskRetryCount).
|
public String commandLine()
public StartTask withCommandLine(String commandLine)
commandLine - the commandLine value to setpublic List<ResourceFile> resourceFiles()
public StartTask withResourceFiles(List<ResourceFile> resourceFiles)
resourceFiles - the resourceFiles value to setpublic List<EnvironmentSetting> environmentSettings()
public StartTask withEnvironmentSettings(List<EnvironmentSetting> environmentSettings)
environmentSettings - the environmentSettings value to setpublic UserIdentity userIdentity()
public StartTask withUserIdentity(UserIdentity userIdentity)
userIdentity - the userIdentity value to setpublic Integer maxTaskRetryCount()
public StartTask withMaxTaskRetryCount(Integer maxTaskRetryCount)
maxTaskRetryCount - the maxTaskRetryCount value to setpublic Boolean waitForSuccess()
public StartTask withWaitForSuccess(Boolean waitForSuccess)
waitForSuccess - the waitForSuccess value to setpublic TaskContainerSettings containerSettings()
public StartTask withContainerSettings(TaskContainerSettings containerSettings)
containerSettings - the containerSettings value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/