TaskSlotCounts Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.TaskSlotCounts

public class TaskSlotCounts

The TaskSlot counts for a Job.

Constructor Summary

Constructor Description
TaskSlotCounts()

Method Summary

Modifier and Type Method and Description
int active()

Get the active value.

int completed()

Get the completed value.

int failed()

Get the failed value.

int running()

Get the running value.

int succeeded()

Get the succeeded value.

TaskSlotCounts withActive(int active)

Set the active value.

TaskSlotCounts withCompleted(int completed)

Set the completed value.

TaskSlotCounts withFailed(int failed)

Set the failed value.

TaskSlotCounts withRunning(int running)

Set the running value.

TaskSlotCounts withSucceeded(int succeeded)

Set the succeeded value.

Methods inherited from java.lang.Object

Constructor Details

TaskSlotCounts

public TaskSlotCounts()

Method Details

active

public int active()

Get the active value.

Returns:

the active value

completed

public int completed()

Get the completed value.

Returns:

the completed value

failed

public int failed()

Get the failed value.

Returns:

the failed value

running

public int running()

Get the running value.

Returns:

the running value

succeeded

public int succeeded()

Get the succeeded value.

Returns:

the succeeded value

withActive

public TaskSlotCounts withActive(int active)

Set the active value.

Parameters:

active - the active value to set

Returns:

the TaskSlotCounts object itself.

withCompleted

public TaskSlotCounts withCompleted(int completed)

Set the completed value.

Parameters:

completed - the completed value to set

Returns:

the TaskSlotCounts object itself.

withFailed

public TaskSlotCounts withFailed(int failed)

Set the failed value.

Parameters:

failed - the failed value to set

Returns:

the TaskSlotCounts object itself.

withRunning

public TaskSlotCounts withRunning(int running)

Set the running value.

Parameters:

running - the running value to set

Returns:

the TaskSlotCounts object itself.

withSucceeded

public TaskSlotCounts withSucceeded(int succeeded)

Set the succeeded value.

Parameters:

succeeded - the succeeded value to set

Returns:

the TaskSlotCounts object itself.

Applies to