Package com.azure.compute.batch.models
Class BatchTaskSchedulingPolicy
java.lang.Object
com.azure.compute.batch.models.BatchTaskSchedulingPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BatchTaskSchedulingPolicy>
public final class BatchTaskSchedulingPolicy
extends Object
implements com.azure.json.JsonSerializable<BatchTaskSchedulingPolicy>
Specifies how Tasks should be distributed across Compute Nodes.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchTaskSchedulingPolicy
(BatchNodeFillType nodeFillType) Creates an instance of BatchTaskSchedulingPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchTaskSchedulingPolicy
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of BatchTaskSchedulingPolicy from the JsonReader.Get the nodeFillType property: How Tasks are distributed across Compute Nodes in a Pool.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
BatchTaskSchedulingPolicy
Creates an instance of BatchTaskSchedulingPolicy class.- Parameters:
nodeFillType
- the nodeFillType value to set.
-
-
Method Details
-
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.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<BatchTaskSchedulingPolicy>
- Throws:
IOException
-
fromJson
public static BatchTaskSchedulingPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the BatchTaskSchedulingPolicy.
-