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

Method status

mod/project/java/utils.py:354–363  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

352 return out.strip() == "enabled"
353
354 def status(self) -> dict:
355 return {
356 "status": os.path.exists(self.path) and os.path.exists(os.path.join(self.path, "bin/daemon.sh")),
357 "jdk_path": self.jdk_path,
358 "path": self.path,
359 "running": self.running(),
360 "port": self.port(),
361 "auto_restart": self.get_auto_restart(),
362 "stype": "built" if os.path.exists(os.path.join(self.path, "conf/server.xml")) else "uninstall"
363 }
364
365 def save_config_xml(self) -> bool:
366 if self.config_xml is None:

Callers 10

_get_tomcat_infoMethod · 0.95
get_sub_pidMethod · 0.45
_bt_tomcat_infoMethod · 0.45
process_for_createMethod · 0.45
_get_pid_by_commandMethod · 0.45
get_project_pidsMethod · 0.45
test_statusMethod · 0.45
create_daemonMethod · 0.45

Calls 5

runningMethod · 0.95
portMethod · 0.95
get_auto_restartMethod · 0.95
existsMethod · 0.45
joinMethod · 0.45

Tested by 1

test_statusMethod · 0.36