(self)
| 1027 | strategy=strategy) |
| 1028 | |
| 1029 | def get_stats(self): |
| 1030 | req = pywrap.new_get_stats_request() |
| 1031 | res = pywrap.new_get_stats_response() |
| 1032 | status = self._client.get_stats(req, res) |
| 1033 | stats = None |
| 1034 | if status.ok(): |
| 1035 | stats = pywrap.get_stats(res) |
| 1036 | pywrap.del_op_response(res) |
| 1037 | pywrap.del_op_request(req) |
| 1038 | errors.raise_exception_on_not_ok_status(status) |
| 1039 | return stats |
| 1040 | |
| 1041 | def server_get_stats(self): |
| 1042 | return self._server.get_stats() |