/** * Called at the start of execution to track statistics around task execution. * * @param taskPair Wrapper that is about to be executed */ protected void trackTaskStart(Pair<Thread, TaskStatWrapper> taskPair) { getExecutionCount(taskPair.getRight().priority).increment(); runningTasks.put(taskPair, Clock.accurateForwardProgressingMillis()); }
/** * Called at the start of execution to track statistics around task execution. * * @param taskPair Wrapper that is about to be executed */ protected void trackTaskStart(Pair<Thread, TaskStatWrapper> taskPair) { getExecutionCount(taskPair.getRight().priority).increment(); runningTasks.put(taskPair, Clock.accurateForwardProgressingMillis()); }
public long getTotalExecutionCount() { long result = 0; for (TaskPriority p : TaskPriority.values()) { result += getExecutionCount(p).sum(); } return result; }
public long getTotalExecutionCount() { long result = 0; for (TaskPriority p : TaskPriority.values()) { result += getExecutionCount(p).sum(); } return result; }
public long getTotalExecutionCount(TaskPriority priority) { if (priority == null) { return getTotalExecutionCount(); } return getExecutionCount(priority).sum(); }
public long getTotalExecutionCount(TaskPriority priority) { if (priority == null) { return getTotalExecutionCount(); } return getExecutionCount(priority).sum(); }