Ejemplo n.º 1
0
 def get_server_info(self):
     """
     Get information about the server
     """
     # NB: can't do it this way due to recursion
     # codec = self._get_codec(ttb_supported=False)
     codec = PbufCodec()
     msg = Msg(riak.pb.messages.MSG_CODE_GET_SERVER_INFO_REQ, None,
               riak.pb.messages.MSG_CODE_GET_SERVER_INFO_RESP)
     resp_code, resp = self._request(msg, codec)
     return codec.decode_get_server_info(resp)
Ejemplo n.º 2
0
 def get_server_info(self):
     """
     Get information about the server
     """
     # NB: can't do it this way due to recursion
     # codec = self._get_codec(ttb_supported=False)
     codec = PbufCodec()
     msg = Msg(riak.pb.messages.MSG_CODE_GET_SERVER_INFO_REQ, None,
               riak.pb.messages.MSG_CODE_GET_SERVER_INFO_RESP)
     resp_code, resp = self._request(msg, codec)
     return codec.decode_get_server_info(resp)