TaskSchedulingPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. TaskSchedulingPolicy
- com.
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 Task |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Task |
fromJson(JsonReader jsonReader)
Reads an instance of Task |
|
Compute |
nodeFillType()
Get the node |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Task |
withNodeFillType(ComputeNodeFillType nodeFillType)
Set the node |
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:
Returns:
Throws:
nodeFillType
public ComputeNodeFillType nodeFillType()
Get the nodeFillType property: How tasks should be distributed across compute nodes.
Returns:
toJson
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:
Returns: