Share via


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.

ComputeNodeFillType nodeFillType()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

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.

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