TaskCounts Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. TaskCounts
- com.
public class TaskCounts
The task counts for a job.
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. |
Task |
withActive(int active)
Set the active value. |
Task |
withCompleted(int completed)
Set the completed value. |
Task |
withFailed(int failed)
Set the failed value. |
Task |
withRunning(int running)
Set the running value. |
Task |
withSucceeded(int succeeded)
Set the succeeded value. |
Method Details
active
public int active()
Get the active value.
Returns:
completed
public int completed()
Get the completed value.
Returns:
failed
public int failed()
Get the failed value.
Returns:
running
public int running()
Get the running value.
Returns:
succeeded
public int succeeded()
Get the succeeded value.
Returns:
withActive
public TaskCounts withActive(int active)
Set the active value.
Parameters:
Returns:
withCompleted
public TaskCounts withCompleted(int completed)
Set the completed value.
Parameters:
Returns:
withFailed
public TaskCounts withFailed(int failed)
Set the failed value.
Parameters:
Returns:
withRunning
public TaskCounts withRunning(int running)
Set the running value.
Parameters:
Returns:
withSucceeded
public TaskCounts withSucceeded(int succeeded)
Set the succeeded value.
Parameters:
Returns:
Applies to
Azure SDK for Java