BatchTaskSchedulingPolicy Class

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

Implements

public final class BatchTaskSchedulingPolicy
implements JsonSerializable<BatchTaskSchedulingPolicy>

Specifies how Tasks should be distributed across Compute Nodes.

Constructor Summary

Constructor Description
BatchTaskSchedulingPolicy(BatchNodeFillType nodeFillType)

Creates an instance of BatchTaskSchedulingPolicy class.

Method Summary

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

Reads an instance of BatchTaskSchedulingPolicy from the JsonReader.

BatchJobDefaultOrder getJobDefaultOrder()

Get the jobDefaultOrder property: The order for scheduling tasks from different jobs with the same priority.

BatchNodeFillType getNodeFillType()

Get the nodeFillType property: How Tasks are distributed across Compute Nodes in a Pool.

BatchTaskSchedulingPolicy setJobDefaultOrder(BatchJobDefaultOrder jobDefaultOrder)

Set the jobDefaultOrder property: The order for scheduling tasks from different jobs with the same priority.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchTaskSchedulingPolicy

public BatchTaskSchedulingPolicy(BatchNodeFillType nodeFillType)

Creates an instance of BatchTaskSchedulingPolicy class.

Parameters:

nodeFillType - the nodeFillType value to set.

Method Details

fromJson

public static BatchTaskSchedulingPolicy fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskSchedulingPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchTaskSchedulingPolicy 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.

getJobDefaultOrder

public BatchJobDefaultOrder getJobDefaultOrder()

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

Returns:

the jobDefaultOrder value.

getNodeFillType

public BatchNodeFillType getNodeFillType()

Get the nodeFillType property: How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.

Returns:

the nodeFillType value.

setJobDefaultOrder

public BatchTaskSchedulingPolicy setJobDefaultOrder(BatchJobDefaultOrder jobDefaultOrder)

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

Parameters:

jobDefaultOrder - the jobDefaultOrder value to set.

Returns:

the BatchTaskSchedulingPolicy object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to