MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / get_project_dump

Method get_project_dump

class/projectModel/javaModel.py:4398–4415  ·  view source on GitHub ↗

@name 获取heapdump 文件列表 @author lkq<2021-09-24> @return list

(self, get)

Source from the content-addressed store, hash-verified

4396 return ret
4397
4398 def get_project_dump(self, get):
4399 ''&#x27;
4400 @name 获取heapdump 文件列表
4401 @author lkq<2021-09-24>
4402 @return list
4403 ''&#x27;
4404 ret = []
4405 project_find = self.get_project_find(get.project_name)
4406 if not project_find:
4407 return ret
4408 if not project_find['project_config']['java_type'] == 'springboot': return ret
4409 if not os.path.exists(self._springoot_dump + '/' + get.project_name + '.json'): return ret
4410 try:
4411 ret = json.loads(public.ReadFile(self._springoot_dump + '/' + get.project_name + '.json'))
4412 return ret
4413 except:
4414 public.WriteFile(public.ReadFile(self._springoot_dump + '/' + get.project_name + '.json'), [])
4415 return ret
4416
4417 def del_project_dump(self, get):
4418 ''&#x27;

Callers

nothing calls this directly

Calls 4

get_project_findMethod · 0.95
existsMethod · 0.45
loadsMethod · 0.45
ReadFileMethod · 0.45

Tested by

no test coverage detected