synchronized List < TaskStatus > getRunningTaskStatuses ( ) { List < TaskStatus > result = new ArrayList < TaskStatus > ( runningTasks . size ( ) ) ; for ( TaskInProgress tip : runningTasks . values ( ) ) { result . add ( tip . getStatus ( ) ) ; } return result ; }
Get the list of tasks that will be reported back to the job tracker in the next heartbeat cycle .