protected String pauseMsg ( ) throws IOException { final WorkerStatus status = new WorkerStatus ( ) ; status . setRunAt ( new Date ( ) ) ; status . setPaused ( isPaused ( ) ) ; return ObjectMapperFactory . get ( ) . writeValueAsString ( status ) ; }
Create and serialize a WorkerStatus for a pause event .