private void writeEvaluatorsWebOutput ( final HttpServletResponse response ) throws IOException { LOG . log ( Level . INFO , "HttpServerReefEventHandler writeEvaluatorsWebOutput is called" ) ; final PrintWriter writer = response . getWriter ( ) ; writer . println ( "<h1>Evaluators:</h1>" ) ; for ( final Map . Entry < String , EvaluatorDescriptor > entry : this . reefStateManager . getEvaluators ( ) . entrySet ( ) ) { final String key = entry . getKey ( ) ; final EvaluatorDescriptor descriptor = entry . getValue ( ) ; writer . println ( "Evaluator Id: " + key ) ; writer . write ( "<br/>" ) ; writer . println ( "Evaluator Name: " + descriptor . getNodeDescriptor ( ) . getName ( ) ) ; writer . write ( "<br/>" ) ; } writer . write ( "<br/>" ) ; writer . println ( "Total number of Evaluators: " + this . reefStateManager . getEvaluators ( ) . size ( ) ) ; writer . write ( "<br/>" ) ; writer . println ( String . format ( "Driver Start Time:[%s]" , this . reefStateManager . getStartTime ( ) ) ) ; }
Get all evaluator ids and send it back to response so that can be displayed on web .