Re: Porting DistributedLog utilities to BookKeeper

2017-09-28 Thread Jia Zhai
How about make class OrderedSafeExecutor extends OrderedScheduler. then all the old reference in bk will not need change, and in future dl will also survive? On Wed, Sep 27, 2017 at 10:20 PM, Enrico Olivelli wrote: > 2017-09-27 16:14 GMT+02:00 Sijie Guo : > > > On Sep 27, 2017 5:12 AM, "Enrico O

Re: Ability to read LedgerMetadata without opening a ledger

2017-09-28 Thread Enrico Olivelli
2017-09-28 15:34 GMT+02:00 Sijie Guo : > - these interfaces are more an admin interface. you can get an bookkeeper > admin object and then access ledger manager to fetch metadata, does that > work for you? > Yes as a workaround I am taking exactly this approch...listLedgers -> getLedgerMetadata (

Re: Ability to read LedgerMetadata without opening a ledger

2017-09-28 Thread Sijie Guo
- these interfaces are more an admin interface. you can get an bookkeeper admin object and then access ledger manager to fetch metadata, does that work for you? - metadata filter is just a wrapper over ledger iterator or async process ledger of ledger manager. most likely you will be the logic impl

Re: Ability to read LedgerMetadata without opening a ledger

2017-09-28 Thread Ivan Kelly
> BookKeeper object does not expose LedgerManager, I don't know if we want to > expose it in the new API LedgerManagerFactory#newLedgerManagerFactory is public now, and you can get a ledger manager from there. Why not just use it directly for the moment? If/when there comes a time where we break th

Re: Ability to read LedgerMetadata without opening a ledger

2017-09-28 Thread Enrico Olivelli
2017-09-28 14:55 GMT+02:00 Sijie Guo : > On Sep 28, 2017 6:20 AM, "Enrico Olivelli" wrote: > > Hi, > I am looking for an API to read ledger metadata without actually opening a > ledger. > > Currently opening a ledger sets a watch on ZK and this is really expensive > and in any case the desired ac

Re: Ability to read LedgerMetadata without opening a ledger

2017-09-28 Thread Sijie Guo
On Sep 28, 2017 6:20 AM, "Enrico Olivelli" wrote: Hi, I am looking for an API to read ledger metadata without actually opening a ledger. Currently opening a ledger sets a watch on ZK and this is really expensive and in any case the desired action is not to "open a ledger" but to access meta info

Ability to read LedgerMetadata without opening a ledger

2017-09-28 Thread Enrico Olivelli
Hi, I am looking for an API to read ledger metadata without actually opening a ledger. Currently opening a ledger sets a watch on ZK and this is really expensive and in any case the desired action is not to "open a ledger" but to access meta information about the ledger. My real usecase is that I