Package com.trifork.riak.RPB

Examples of com.trifork.riak.RPB.RpbGetServerInfoResp


      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;
View Full Code Here

TOP

Related Classes of com.trifork.riak.RPB.RpbGetServerInfoResp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.