public void start ( ) throws Exception { Preconditions . checkState ( state . compareAndSet ( State . LATENT , State . STARTED ) ) ; //Try to restore data from backup before zookeeper will be started backupManager . restoreAll ( ) ; activityQueue . start ( ) ; configManager . start ( ) ; monitorRunningInstance . start ( ) ; cleanupManager . start ( ) ; backupManager . start ( ) ; autoInstanceManagement . start ( ) ; if ( servoMonitoring != null ) { servoMonitoring . start ( ) ; } configManager . addConfigListener ( new ConfigListener ( ) { @ Override public void configUpdated ( ) { try { resetLocalConnection ( ) ; } catch ( IOException e ) { log . add ( ActivityLog . Type . ERROR , "Resetting connection" , e ) ; } } } ) ; }
Start the app