Update to current versions
This commit is contained in:
parent
4d174a86da
commit
28c3eb6876
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -60,3 +60,5 @@ target/
|
||||||
|
|
||||||
#Ipython Notebook
|
#Ipython Notebook
|
||||||
.ipynb_checkpoints
|
.ipynb_checkpoints
|
||||||
|
.venv
|
||||||
|
*~
|
||||||
|
|
|
@ -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
10
src/Murmur/__init__.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Generated by slice2py - DO NOT EDIT!
|
||||||
|
#
|
||||||
|
|
||||||
|
import Ice
|
||||||
|
Ice.updateModule("Murmur")
|
||||||
|
|
||||||
|
# Modules:
|
||||||
|
import Murmur_ice
|
||||||
|
|
||||||
|
# Submodules:
|
7196
src/Murmur_ice.py
7196
src/Murmur_ice.py
File diff suppressed because it is too large
Load diff
20
src/status.py
Normal file
20
src/status.py
Normal 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())
|
Loading…
Reference in a new issue