@ Route ( method = HttpMethod . GET , uri = "/monitor/executors.json" ) public Result data ( ) { return ok ( ImmutableMap . builder ( ) . put ( "executors" , getExecutorsAsMap ( executors ) ) . put ( "schedulers" , getExecutorsAsMap ( schedulers ) ) . put ( "hung" , getHungTasks ( ) ) . put ( "completed" , getCompletedTasks ( ) ) . build ( ) ) ; }
Retrieves the metrics about the executors . This method is intended to be used to handled an AJAX call .