def _parse_data(self, rvalue):
try:
rvalue = json.loads(rvalue)
except ValueError, e:
raise JvmCollectorExcept('return value should be json, bug found %s' % rvalue)
# ???????????
if rvalue.get('code'):
if "Can't match any instances with instance id" in rvalue.get('msg') and not self.already_reload:
self.already_reload = True
# ????????
self.reload_instance(self.inst_id)
return 1, {}
else:
raise JvmCollectorExcept('jstatus return error, %s' % rvalue.get('msg'))
return 0, self._parse_dimension_value(rvalue.get('data', {}))
评论列表
文章目录