Share via


BatchTaskDependencies Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchTaskDependencies

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 BatchTaskDependencies class.

Method Summary

Modifier and Type Method and Description
static BatchTaskDependencies fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskDependencies from the JsonReader.

List<BatchTaskIdRange> getTaskIdRanges()

Get the taskIdRanges property: The list of Task ID ranges that this Task depends on.

List<String> getTaskIds()

Get the taskIds property: The list of Task IDs that this Task depends on.

BatchTaskDependencies setTaskIdRanges(List<BatchTaskIdRange> taskIdRanges)

Set the taskIdRanges property: The list of Task ID ranges that this Task depends on.

BatchTaskDependencies setTaskIds(List<String> taskIds)

Set the taskIds property: The list of Task IDs that this Task depends on.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchTaskDependencies if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the BatchTaskDependencies.

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:

the taskIdRanges value.

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:

the taskIds value.

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:

taskIdRanges - the taskIdRanges value to set.

Returns:

the BatchTaskDependencies object itself.

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:

taskIds - the taskIds value to set.

Returns:

the BatchTaskDependencies object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to