zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From N Keywal <nkey...@gmail.com>
Subject getting the server version from a java client
Date Mon, 30 Jan 2012 09:04:46 GMT
Hello,

What's the recommended way for a client to get the version of the server
it's connected to?

I would like to write a (java) client that uses the "multi" function
available since 3.4.x, with a fall-back implementation if the server is a
3.3. Or at the very least to check that the server is a 3.4+ before using
"multi".

I looked at the java client API but I didn't find a way to get this info.

When the client uses "multi" when connected to a 3.3 server, it hangs (I
was hoping for something like KeeperException.UnimplementedException, but
it's not the case).

Thanks in advance for your help,

N.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message