BatchTaskDependencies Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchTaskDependencies
- com.
Implements
public final class BatchTaskDependencies
implements JsonSerializable<BatchTaskDependencies>
Specifies any dependencies of a Task. Any Task that is explicitly specified or within a dependency range must complete before the dependant Task will be scheduled.
Constructor Summary
| Constructor | Description |
|---|---|
| BatchTaskDependencies() |
Creates an instance of Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
List<Batch |
getTaskIdRanges()
Get the task |
| List<String> |
getTaskIds()
Get the task |
|
Batch |
setTaskIdRanges(List<BatchTaskIdRange> taskIdRanges)
Set the task |
|
Batch |
setTaskIds(List<String> taskIds)
Set the task |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchTaskDependencies
public BatchTaskDependencies()
Creates an instance of BatchTaskDependencies class.
Method Details
fromJson
public static BatchTaskDependencies fromJson(JsonReader jsonReader)
Reads an instance of BatchTaskDependencies from the JsonReader.
Parameters:
Returns:
Throws:
getTaskIdRanges
public List<BatchTaskIdRange> getTaskIdRanges()
Get the taskIdRanges property: The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled.
Returns:
getTaskIds
public List<String> getTaskIds()
Get the taskIds property: The list of Task IDs that this Task depends on. All Tasks in this list must complete successfully before the dependent Task can be scheduled. The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead.
Returns:
setTaskIdRanges
public BatchTaskDependencies setTaskIdRanges(List<BatchTaskIdRange> taskIdRanges)
Set the taskIdRanges property: The list of Task ID ranges that this Task depends on. All Tasks in all ranges must complete successfully before the dependent Task can be scheduled.
Parameters:
Returns:
setTaskIds
public BatchTaskDependencies setTaskIds(List<String> taskIds)
Set the taskIds property: The list of Task IDs that this Task depends on. All Tasks in this list must complete successfully before the dependent Task can be scheduled. The taskIds collection is limited to 64000 characters total (i.e. the combined length of all Task IDs). If the taskIds collection exceeds the maximum length, the Add Task request fails with error code TaskDependencyListTooLong. In this case consider using Task ID ranges instead.
Parameters:
Returns: