BatchTaskSchedulingPolicy Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchTaskSchedulingPolicy
- com.
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 Batch |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Batch |
getJobDefaultOrder()
Get the job |
|
Batch |
getNodeFillType()
Get the node |
|
Batch |
setJobDefaultOrder(BatchJobDefaultOrder jobDefaultOrder)
Set the job |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
BatchTaskSchedulingPolicy
public BatchTaskSchedulingPolicy(BatchNodeFillType nodeFillType)
Creates an instance of BatchTaskSchedulingPolicy class.
Parameters:
Method Details
fromJson
public static BatchTaskSchedulingPolicy fromJson(JsonReader jsonReader)
Reads an instance of BatchTaskSchedulingPolicy from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
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:
Returns: