BatchNodeDisableSchedulingParameters Class

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

Implements

public final class BatchNodeDisableSchedulingParameters
implements JsonSerializable<BatchNodeDisableSchedulingParameters>

Parameters for disabling scheduling on an Azure Batch Compute Node.

Constructor Summary

Constructor Description
BatchNodeDisableSchedulingParameters()

Creates an instance of BatchNodeDisableSchedulingParameters class.

Method Summary

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

Reads an instance of BatchNodeDisableSchedulingParameters from the JsonReader.

BatchNodeDisableSchedulingOption getNodeDisableSchedulingOption()

Get the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node.

BatchNodeDisableSchedulingParameters setNodeDisableSchedulingOption(BatchNodeDisableSchedulingOption nodeDisableSchedulingOption)

Set the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchNodeDisableSchedulingParameters

public BatchNodeDisableSchedulingParameters()

Creates an instance of BatchNodeDisableSchedulingParameters class.

Method Details

fromJson

public static BatchNodeDisableSchedulingParameters fromJson(JsonReader jsonReader)

Reads an instance of BatchNodeDisableSchedulingParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchNodeDisableSchedulingParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the BatchNodeDisableSchedulingParameters.

getNodeDisableSchedulingOption

public BatchNodeDisableSchedulingOption getNodeDisableSchedulingOption()

Get the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue.

Returns:

the nodeDisableSchedulingOption value.

setNodeDisableSchedulingOption

public BatchNodeDisableSchedulingParameters setNodeDisableSchedulingOption(BatchNodeDisableSchedulingOption nodeDisableSchedulingOption)

Set the nodeDisableSchedulingOption property: What to do with currently running Tasks when disabling Task scheduling on the Compute Node. The default value is requeue.

Parameters:

nodeDisableSchedulingOption - the nodeDisableSchedulingOption value to set.

Returns:

the BatchNodeDisableSchedulingParameters object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to