public ServerConfiguration killBookie(int index) throws Exception {
  if (index >= bs.size()) {
    throw new IOException("Bookie does not exist");
  }
  BookieServer server=bs.get(index);
  server.shutdown();
  stopAutoRecoveryService(server);
  bs.remove(server);
  return bsConfs.remove(index);
}

public ServerConfiguration killBookie ( int index ) throws Exception { if ( index >= bs . size ( ) ) { throw new IOException ( "Bookie does not exist" ) ; } BookieServer server = bs . get ( index ) ; server . shutdown ( ) ; stopAutoRecoveryService ( server ) ; bs . remove ( server ) ; return bsConfs . remove ( index ) ; }
kill a bookie by index . also , stops the respective auto recovery process for this bookie , if isautorecoveryenabled is true .
