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

Method pendent_tomcat_info

class/projectModel/javaModel.py:999–1027  ·  view source on GitHub ↗

@name 独立项目的项目信息 @author lkq 2021-08-27

(self, get=None, domain=None)

Source from the content-addressed store, hash-verified

997 return public.returnMsg(False, '类型错误')
998
999 def pendent_tomcat_info(self, get=None, domain=None):
1000 '''
1001 @name 独立项目的项目信息
1002 @author lkq 2021-08-27
1003 '''
1004 if get: domain = get.domain.strip()
1005 tmp = {}
1006 tmp_path = self.__site_path + '' + domain + '/conf/server.xml'
1007 if os.path.exists(tmp_path):
1008 if not self.Initialization2('7', domain):
1009 tmp["port"] = False
1010 else:
1011 tmp["port"] = self.get_port()
1012 tmp['status'] = self.get_server(domain, domain)
1013 tmp['conf'] = public.readFile(tmp_path)
1014 tmp['jdk_path'] = self.get_jdk_path(domain, True)
1015 # tmp['log'] = public.GetNumLines('%s/%s/logs/catalina-daemon.out'%(self.__site_path,domain), 3000)
1016 tmp["tomcat_server"] = tmp_path
1017 tmp['tomcat_start'] = self.__site_path + '' + domain + '/bin/daemon.sh'
1018 tmp['stype'] = 'built'
1019 else:
1020 tmp['status'] = False
1021 tmp["port"] = False
1022 tmp['conf'] = False
1023 tmp['jdk'] = False
1024 tmp['log'] = False
1025 tmp['jdk_path'] = False
1026 tmp['stype'] = 'uninstall'
1027 return tmp
1028
1029 def exists_nginx_ssl(self, project_name):
1030 '''

Callers 2

get_project_statMethod · 0.95
modify_project_neizhiMethod · 0.95

Calls 6

Initialization2Method · 0.95
get_portMethod · 0.95
get_serverMethod · 0.95
get_jdk_pathMethod · 0.95
readFileMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected