LedgerMetadata getLedger ( long ledgerId ) { int index = getLedgerMetadataIndex ( ledgerId ) ; if ( index >= 0 ) { return this . ledgers . get ( index ) ; } return null ; }
Gets the LedgerMetadata for the ledger with given ledger Id .