public void shutdown ( Long id ) { Watchdog wd = ( Watchdog ) this . registeredWachdogs . get ( id ) ; if ( wd == null ) { throw new IllegalStateException ( "Watchdog " + id + " ist not registered" ) ; } wd . kill ( ) ; this . deregisterWatchdog ( id ) ; }
stops the the Watchdog with the given id The executing thread of the watchdog is stopped and the watchdog is removed from the registry . It can nor be restarted