package Ġcom . g kh . synt hetic monitor . scheduler Ċ Ċ import Ġcom . g kh . synt hetic monitor . service . Application Service Ċ import Ġlombok . extern . slf 4 j . Slf 4 j Ċ import Ġorg . apache . logging . log 4 j . Log Manager Ċ import Ġorg . springframework . scheduling . annotation . Scheduled Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġjava . time . LocalDateTime Ċ import Ġjava . time . format . DateTime Formatter Ċ Ċ @ Slf 4 j Ċ @ Service Ċ class ĠScheduler Service ( ĊĠĠĠ Ġprivate Ġvar Ġapplication Service : ĠApplication Service Ċ ) Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġlogger Ġ= ĠLog Manager . getLogger () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Scheduled ( fixed Delay Ġ= Ġ 4 5 0 0 0 ) ĊĠĠĠ Ġfun Ġcheck Test Ready To Fire () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġlocal DateTime Str Ġ= Ġget LocalDateTime AsString () ĊĠĠĠĠĠĠĠ Ġlogger . info (" check Test Ready To Fire : ĠTime Ġ- Ġ$ local DateTime Str ") ĊĠĠĠĠĠĠĠ Ġapplication Service . check Tests Ready To Fire () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Scheduled ( fixed Delay Ġ= Ġ 6 0 0 0 0 ) ĊĠĠĠ Ġfun Ġexecute Next Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġlocal DateTime Str Ġ= Ġget LocalDateTime AsString () ĊĠĠĠĠĠĠĠ Ġlogger . info (" Execute Next Test : ĠTime Ġ- Ġ$ local DateTime Str ") ĊĠĠĠĠĠĠĠ Ġapplication Service . execute Next Tests () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġget LocalDateTime AsString () Ġ= ĠDateTime Formatter . ISO _ LOCAL _ DATE _ TIME . format ( LocalDateTime . now ()) Ċ }