Share via


BatchNodeCounts Class

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

Implements

public final class BatchNodeCounts
implements JsonSerializable<BatchNodeCounts>

The number of Compute Nodes in each Compute Node state.

Method Summary

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

Reads an instance of BatchNodeCounts from the JsonReader.

int getCreating()

Get the creating property: The number of Compute Nodes in the creating state.

int getDeallocated()

Get the deallocated property: The number of Compute Nodes in the deallocated state.

int getDeallocating()

Get the deallocating property: The number of Compute Nodes in the deallocating state.

int getIdle()

Get the idle property: The number of Compute Nodes in the idle state.

int getLeavingPool()

Get the leavingPool property: The number of Compute Nodes in the leavingPool state.

int getOffline()

Get the offline property: The number of Compute Nodes in the offline state.

int getPreempted()

Get the preempted property: The number of Compute Nodes in the preempted state.

int getRebooting()

Get the rebooting property: The count of Compute Nodes in the rebooting state.

int getReimaging()

Get the reimaging property: The number of Compute Nodes in the reimaging state.

int getRunning()

Get the running property: The number of Compute Nodes in the running state.

int getStarting()

Get the starting property: The number of Compute Nodes in the starting state.

int getStartTaskFailed()

Get the startTaskFailed property: The number of Compute Nodes in the startTaskFailed state.

int getTotal()

Get the total property: The total number of Compute Nodes.

int getUnknown()

Get the unknown property: The number of Compute Nodes in the unknown state.

int getUnusable()

Get the unusable property: The number of Compute Nodes in the unusable state.

int getUpgradingOs()

Get the upgradingOs property: The number of Compute Nodes in the upgradingOS state.

int getWaitingForStartTask()

Get the waitingForStartTask property: The number of Compute Nodes in the waitingForStartTask state.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchNodeCounts fromJson(JsonReader jsonReader)

Reads an instance of BatchNodeCounts from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCreating

public int getCreating()

Get the creating property: The number of Compute Nodes in the creating state.

Returns:

the creating value.

getDeallocated

public int getDeallocated()

Get the deallocated property: The number of Compute Nodes in the deallocated state.

Returns:

the deallocated value.

getDeallocating

public int getDeallocating()

Get the deallocating property: The number of Compute Nodes in the deallocating state.

Returns:

the deallocating value.

getIdle

public int getIdle()

Get the idle property: The number of Compute Nodes in the idle state.

Returns:

the idle value.

getLeavingPool

public int getLeavingPool()

Get the leavingPool property: The number of Compute Nodes in the leavingPool state.

Returns:

the leavingPool value.

getOffline

public int getOffline()

Get the offline property: The number of Compute Nodes in the offline state.

Returns:

the offline value.

getPreempted

public int getPreempted()

Get the preempted property: The number of Compute Nodes in the preempted state.

Returns:

the preempted value.

getRebooting

public int getRebooting()

Get the rebooting property: The count of Compute Nodes in the rebooting state.

Returns:

the rebooting value.

getReimaging

public int getReimaging()

Get the reimaging property: The number of Compute Nodes in the reimaging state.

Returns:

the reimaging value.

getRunning

public int getRunning()

Get the running property: The number of Compute Nodes in the running state.

Returns:

the running value.

getStarting

public int getStarting()

Get the starting property: The number of Compute Nodes in the starting state.

Returns:

the starting value.

getStartTaskFailed

public int getStartTaskFailed()

Get the startTaskFailed property: The number of Compute Nodes in the startTaskFailed state.

Returns:

the startTaskFailed value.

getTotal

public int getTotal()

Get the total property: The total number of Compute Nodes.

Returns:

the total value.

getUnknown

public int getUnknown()

Get the unknown property: The number of Compute Nodes in the unknown state.

Returns:

the unknown value.

getUnusable

public int getUnusable()

Get the unusable property: The number of Compute Nodes in the unusable state.

Returns:

the unusable value.

getUpgradingOs

public int getUpgradingOs()

Get the upgradingOs property: The number of Compute Nodes in the upgradingOS state.

Returns:

the upgradingOs value.

getWaitingForStartTask

public int getWaitingForStartTask()

Get the waitingForStartTask property: The number of Compute Nodes in the waitingForStartTask state.

Returns:

the waitingForStartTask value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to