static synchronized void shutDownHub ( ) { LOGGER . entering ( ) ; if ( ! isRunLocally ( ) ) { LOGGER . exiting ( ) ; return ; } // shutdown in reverse order Collections . reverse ( toBoot ) ; for ( LocalServerComponent eachItem : toBoot ) { eachItem . shutdown ( ) ; } clearToBootList ( ) ; LOGGER . exiting ( ) ; }
This method helps shut down the already spawned hub for local runs