public class TaskCounter
extends java.lang.Object
| Constructor and Description |
|---|
TaskCounter(java.lang.String workerName,
java.util.Map<java.lang.String,java.lang.Integer> tasksTodoPerJobs,
int tasksInProgress)
Conversion Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getTasksInProgress()
gets the number of tasks that are in progress.
|
int |
getTasksTodo()
gets the number of todo tasks.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getTasksTodoPerJobs()
gets the numbers of todo tasks per jobs.
|
java.lang.String |
getWorkerName() |
java.lang.String |
toString() |
public TaskCounter(java.lang.String workerName,
java.util.Map<java.lang.String,java.lang.Integer> tasksTodoPerJobs,
int tasksInProgress)
workerName - the name of the workertasksTodo - the numbers of todo tasks per jobstasksInProgress - the number of tasks in progresspublic java.lang.String getWorkerName()
public java.util.Map<java.lang.String,java.lang.Integer> getTasksTodoPerJobs()
public int getTasksTodo()
public int getTasksInProgress()
public java.lang.String toString()
toString in class java.lang.Object