Update to current versions

This commit is contained in:
stb 2024-01-24 08:13:20 +00:00
parent 4d174a86da
commit 28c3eb6876
5 changed files with 4646 additions and 2586 deletions

2
.gitignore vendored
View file

@ -60,3 +60,5 @@ target/
#Ipython Notebook #Ipython Notebook
.ipynb_checkpoints .ipynb_checkpoints
.venv
*~

View file

@ -1,2 +1,2 @@
prometheus-client==0.0.13 prometheus-client==0.19.0
zeroc-ice==3.6.2.1 zeroc-ice==3.7.10

10
src/Murmur/__init__.py Normal file
View file

@ -0,0 +1,10 @@
# Generated by slice2py - DO NOT EDIT!
#
import Ice
Ice.updateModule("Murmur")
# Modules:
import Murmur_ice
# Submodules:

File diff suppressed because it is too large Load diff

20
src/status.py Normal file
View file

@ -0,0 +1,20 @@
import sys, Ice
import Murmur
with Ice.initialize(sys.argv) as communicator:
base = communicator.stringToProxy("Meta:tcp -h 127.0.0.1 -p 6502")
meta = Murmur.MetaPrx.checkedCast(base)
if not meta:
raise RuntimeError("Invalid proxy")
servers = meta.getAllServers()
if len(servers) == 0:
print("No servers found")
for currentServer in servers:
if currentServer.isRunning():
print("Found server (id=%d):\tOnline since %d seconds" % (currentServer.id(), currentServer.getUptime()))
else:
print("Found server (id=%d):\tOffline" % currentServer.id())