public void bootstrap ( ) throws Exception { final HostRunningModeControl runningModeControl = environment . getRunningModeControl ( ) ; final ControlledProcessState processState = new ControlledProcessState ( true ) ; shutdownHook . setControlledProcessState ( processState ) ; ServiceTarget target = serviceContainer . subTarget ( ) ; ControlledProcessStateService controlledProcessStateService = ControlledProcessStateService . addService ( target , processState ) . getValue ( ) ; RunningStateJmx . registerMBean ( controlledProcessStateService , null , runningModeControl , false ) ; final HostControllerService hcs = new HostControllerService ( environment , runningModeControl , authCode , processState ) ; target . addService ( HostControllerService . HC_SERVICE_NAME , hcs ) . install ( ) ; }
Start the host controller services .