|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatisticsHolder
A holder of statistics for tasks.
Method Summary | |
---|---|
void |
addPendingTask(TaskIdentifier ti)
A new task is put in the queue, waiting to be handled. |
void |
changeTaskStatusToFinished(TaskIdentifier ti,
boolean wasOk,
long timeSpent)
A task has been completed. |
void |
changeTaskStatusToRunning(TaskIdentifier ti)
A pending task is about to be run. |
Map<String,List<CompletionEntry>> |
getLatest()
Get information about the most recent completed tasks |
Map<String,List<CompletionEntry>> |
getLongest()
Get information about the longest running task. |
Map<String,List<TaskIdentifier>> |
getPendingTasks()
Get information about the currently pending tasks. |
Map<String,List<TaskIdentifier>> |
getRunningTasks()
Get information about the currently running tasks. |
Map<String,TotalTimeSpent> |
getTotalTimeSpent()
Get the total time spent for each task. |
Method Detail |
---|
void addPendingTask(TaskIdentifier ti)
ti
- the identifier of the new task.void changeTaskStatusToRunning(TaskIdentifier ti)
ti
- the identifier of the task that will start to run.void changeTaskStatusToFinished(TaskIdentifier ti, boolean wasOk, long timeSpent)
ti
- the identifier of the task that has completed.wasOk
- true if the task completed without errors, false otherwise.timeSpent
- wall clock time spent on the task.Map<String,List<TaskIdentifier>> getPendingTasks()
Map<String,List<TaskIdentifier>> getRunningTasks()
Map<String,List<CompletionEntry>> getLatest()
Map<String,List<CompletionEntry>> getLongest()
Map<String,TotalTimeSpent> getTotalTimeSpent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |