TaskCounts Class

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

public class TaskCounts

The Task counts for a Job.

Constructor Summary

Constructor Description
TaskCounts()

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.

TaskCounts withActive(int active)

Set the active value.

TaskCounts withCompleted(int completed)

Set the completed value.

TaskCounts withFailed(int failed)

Set the failed value.

TaskCounts withRunning(int running)

Set the running value.

TaskCounts withSucceeded(int succeeded)

Set the succeeded value.

Methods inherited from java.lang.Object

Constructor Details

TaskCounts

public TaskCounts()

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 TaskCounts withActive(int active)

Set the active value.

Parameters:

active - the active value to set

Returns:

the TaskCounts object itself.

withCompleted

public TaskCounts withCompleted(int completed)

Set the completed value.

Parameters:

completed - the completed value to set

Returns:

the TaskCounts object itself.

withFailed

public TaskCounts withFailed(int failed)

Set the failed value.

Parameters:

failed - the failed value to set

Returns:

the TaskCounts object itself.

withRunning

public TaskCounts withRunning(int running)

Set the running value.

Parameters:

running - the running value to set

Returns:

the TaskCounts object itself.

withSucceeded

public TaskCounts withSucceeded(int succeeded)

Set the succeeded value.

Parameters:

succeeded - the succeeded value to set

Returns:

the TaskCounts object itself.

Applies to