Re: Ability to read LedgerMetadata without opening a ledger

2017-10-03 Thread Enrico Olivelli
Il lun 2 ott 2017, 18:33 Sijie Guo ha scritto: > On Sun, Oct 1, 2017 at 10:11 PM, Enrico Olivelli > wrote: > > > Il lun 2 ott 2017, 04:06 Sijie Guo ha scritto: > > > > > On Sep 28, 2017 7:10 AM, "Enrico Olivelli" > wrote: > > > > > > 2017-09-28 15:34 GMT+02:00 Sijie Guo : > > > > > > > - these

Re: Ability to read LedgerMetadata without opening a ledger

2017-10-02 Thread Sijie Guo
On Sun, Oct 1, 2017 at 10:11 PM, Enrico Olivelli wrote: > Il lun 2 ott 2017, 04:06 Sijie Guo ha scritto: > > > On Sep 28, 2017 7:10 AM, "Enrico Olivelli" wrote: > > > > 2017-09-28 15:34 GMT+02:00 Sijie Guo : > > > > > - these interfaces are more an admin interface. you can get an > bookkeeper >

Re: Ability to read LedgerMetadata without opening a ledger

2017-10-01 Thread Enrico Olivelli
Il lun 2 ott 2017, 04:06 Sijie Guo ha scritto: > On Sep 28, 2017 7:10 AM, "Enrico Olivelli" wrote: > > 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 th

Re: Ability to read LedgerMetadata without opening a ledger

2017-10-01 Thread Sijie Guo
On Sep 28, 2017 7:10 AM, "Enrico Olivelli" wrote: 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 exact

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