Re: ZK compatability

2010-09-28 Thread Jun Rao
What about major releases going forward? Thanks,

Jun

On Mon, Sep 27, 2010 at 10:32 PM, Patrick Hunt  wrote:

> In general yes, minor and bug fix releases are fully backward compatible.
>
> Patrick
>
>
> On Sun, Sep 26, 2010 at 9:11 PM, Jun Rao  wrote:
>
>> Hi,
>>
>> Does ZK support (and plan to support in the future) backward compatibility
>> (so that a new client can talk to an old server and vice versa)?
>>
>> Thanks
>>
>> Jun
>>
>
>


BookKeeper newbie question

2010-09-28 Thread amit jaiswal
Hi,

I am experimenting with BookKeeper and have a question on LedgerHandler class. 
The readEntries(firstEntry, lastEntry) method takes the indexes of first and 
last entries. Also, the LedgerSequence object returned has method 
hasMoreElements().

Question:
1. How does a client knows the index of the last entry? I was expecting clients 
to make a call like readEntries(0, Integer.MAX_INT) and the hasMoreElements() 
to 
return false the moment there are no more entries. Am I missing something in 
the 
way the API is supposed to be used?

2. The LedgerSequence.hasMoreElements() returns true (even if there are no more 
entries), and the nextEntry returns null.

Can someone  please clarify the correct semantics of these APIs.

-amit