@Override public void run(){
  this.moduleLoaderState=ModuleLoaderState.COMPLETE;
  if (log.isDebugEnabled()) {
    logListeners();
  }
  while (true) {
    try {
      IUpdate update=updates.take();
      update.dispatch();
    }
 catch (    InterruptedException e) {
      log.error("Received interrupted exception in updates loop;" + "terminating process");
      log.info("Calling System.exit");
      System.exit(1);
    }
catch (    StorageException e) {
      log.error("Storage exception in controller " + "updates loop; terminating process",e);
      log.info("Calling System.exit");
      System.exit(1);
    }
catch (    Exception e) {
      log.error("Exception in controller updates loop",e);
    }
  }
}

@ Override public void run ( ) { this . moduleLoaderState = ModuleLoaderState . COMPLETE ; if ( log . isDebugEnabled ( ) ) { logListeners ( ) ; } while ( true ) { try { IUpdate update = updates . take ( ) ; update . dispatch ( ) ; } catch ( InterruptedException e ) { log . error ( "Received interrupted exception in updates loop;" + "terminating process" ) ; log . info ( "Calling System.exit" ) ; System . exit ( 1 ) ; } catch ( StorageException e ) { log . error ( "Storage exception in controller " + "updates loop; terminating process" , e ) ; log . info ( "Calling System.exit" ) ; System . exit ( 1 ) ; } catch ( Exception e ) { log . error ( "Exception in controller updates loop" , e ) ; } } }
tell controller that we ' re ready to accept switches loop
