c.send(MSG_GetServerInfoReq);
byte[] data = c.receive(MSG_GetServerInfoResp);
if (data == null)
return Collections.emptyMap();
RpbGetServerInfoResp res = RPB.RpbGetServerInfoResp.parseFrom(data);
if (res.hasNode()) {
this.node = res.getNode().toStringUtf8();
}
if (res.hasServerVersion()) {
this.serverVersion = res.getServerVersion().toStringUtf8();
}
Map<String, String> result = new HashMap<String, String>();
result.put("node", node);
result.put("server_version", serverVersion);
return result;