public void startBookie ( int bookieIndex ) throws Exception { Preconditions . checkState ( this . servers . size ( ) > 0 , "No Bookies initialized. Call startAll()." ) ; Preconditions . checkState ( this . servers . get ( 0 ) == null , "Bookie already running." ) ; this . servers . set ( bookieIndex , runBookie ( this . bookiePorts . get ( bookieIndex ) ) ) ; log . info ( "Bookie {} stopped." , bookieIndex ) ; }
Restarts the BookieService with the given index .