private void writeEvaluatorInfoJsonOutput ( final HttpServletResponse response , final List < String > ids ) throws IOException { try { final EvaluatorInfoSerializer serializer = Tang . Factory . getTang ( ) . newInjector ( ) . getInstance ( EvaluatorInfoSerializer . class ) ; final AvroEvaluatorsInfo evaluatorsInfo = serializer . toAvro ( ids , this . reefStateManager . getEvaluators ( ) ) ; writeResponse ( response , serializer . toString ( evaluatorsInfo ) ) ; } catch ( final InjectionException e ) { LOG . log ( Level . SEVERE , "Error in injecting EvaluatorInfoSerializer." , e ) ; writeResponse ( response , "Error in injecting EvaluatorInfoSerializer: " + e ) ; } }
Write Evaluator info as JSON format to HTTP Response .