@ RequestMapping ( "/{id}/monitor" ) public ModelAndView monitor ( @ PathVariable ( "id" ) final String id ) { final JobHandle job = this . manager . getJob ( id ) ; if ( job != null ) { logger . debug ( "Job: {} - {}" , job . getId ( ) , job . getState ( ) ) ; } else { logger . debug ( "No job: {}" , id ) ; } final Map < String , Object > model = new HashMap <> ( 1 ) ; model . put ( "job" , job ) ; return new ModelAndView ( "monitor" , model ) ; }
Monitor the job only produces an HTML fragment of the current job state