TaskSchedulingPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.batch.models.TaskSchedulingPolicy

Implements

public final class TaskSchedulingPolicy
implements JsonSerializable<TaskSchedulingPolicy>

Specifies how tasks should be distributed across compute nodes.

Constructor Summary

Constructor Description
TaskSchedulingPolicy()

Creates an instance of TaskSchedulingPolicy class.

Method Summary

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

Reads an instance of TaskSchedulingPolicy from the JsonReader.

JobDefaultOrder jobDefaultOrder()

Get the jobDefaultOrder property: If not specified, the default is none.

ComputeNodeFillType nodeFillType()

Get the nodeFillType property: How tasks should be distributed across compute nodes.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TaskSchedulingPolicy withJobDefaultOrder(JobDefaultOrder jobDefaultOrder)

Set the jobDefaultOrder property: If not specified, the default is none.

TaskSchedulingPolicy withNodeFillType(ComputeNodeFillType nodeFillType)

Set the nodeFillType property: How tasks should be distributed across compute nodes.

Methods inherited from java.lang.Object

Constructor Details

TaskSchedulingPolicy

public TaskSchedulingPolicy()

Creates an instance of TaskSchedulingPolicy class.

Method Details

fromJson

public static TaskSchedulingPolicy fromJson(JsonReader jsonReader)

Reads an instance of TaskSchedulingPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

jobDefaultOrder

public JobDefaultOrder jobDefaultOrder()

Get the jobDefaultOrder property: If not specified, the default is none. The order for scheduling tasks from different jobs with the same priority.

Returns:

the jobDefaultOrder value.

nodeFillType

public ComputeNodeFillType nodeFillType()

Get the nodeFillType property: How tasks should be distributed across compute nodes.

Returns:

the nodeFillType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withJobDefaultOrder

public TaskSchedulingPolicy withJobDefaultOrder(JobDefaultOrder jobDefaultOrder)

Set the jobDefaultOrder property: If not specified, the default is none. The order for scheduling tasks from different jobs with the same priority.

Parameters:

jobDefaultOrder - the jobDefaultOrder value to set.

Returns:

the TaskSchedulingPolicy object itself.

withNodeFillType

public TaskSchedulingPolicy withNodeFillType(ComputeNodeFillType nodeFillType)

Set the nodeFillType property: How tasks should be distributed across compute nodes.

Parameters:

nodeFillType - the nodeFillType value to set.

Returns:

the TaskSchedulingPolicy object itself.

Applies to