public void restartBookies(ServerConfiguration newConf) throws Exception {
  for (  BookieServer server : bs) {
    server.shutdown();
    stopAutoRecoveryService(server);
  }
  bs.clear();
  Thread.sleep(1000);
  List<ServerConfiguration> bsConfsCopy=new ArrayList<ServerConfiguration>(bsConfs);
  bsConfs.clear();
  for (  ServerConfiguration conf : bsConfsCopy) {
    if (null != newConf) {
      conf.loadConf(newConf);
    }
    startBookie(conf);
  }
}

public void restartBookies ( ServerConfiguration newConf ) throws Exception { for ( BookieServer server : bs ) { server . shutdown ( ) ; stopAutoRecoveryService ( server ) ; } bs . clear ( ) ; Thread . sleep ( 1000 ) ; List < ServerConfiguration > bsConfsCopy = new ArrayList < ServerConfiguration > ( bsConfs ) ; bsConfs . clear ( ) ; for ( ServerConfiguration conf : bsConfsCopy ) { if ( null != newConf ) { conf . loadConf ( newConf ) ; } startBookie ( conf ) ; } }
restart bookie servers using new configuration settings . also restart the respective auto recovery process , if isautorecoveryenabled is true .
