}
private void initialize(ServerConfiguration conf, ZooKeeper zkc)
throws UnavailableException {
try {
LedgerManagerFactory ledgerManagerFactory = LedgerManagerFactory
.newLedgerManagerFactory(conf, zkc);
ledgerManager = ledgerManagerFactory.newLedgerManager();
this.bookieLedgerIndexer = new BookieLedgerIndexer(ledgerManager);
this.ledgerUnderreplicationManager = ledgerManagerFactory
.newLedgerUnderreplicationManager();
this.bkc = new BookKeeper(new ClientConfiguration(conf), zkc);
this.admin = new BookKeeperAdmin(bkc);