summaryrefslogtreecommitdiffstats
path: root/lib_cman.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-09-27 22:10:58 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-09-27 22:10:58 +0200
commit15bf2046cbe5392c9beb903b07c2f814a64be571 (patch)
treec635a57c0d8efdf2b3e14a0b04281bb15ed954bf /lib_cman.py
parent91b24a8628b72806e1a725649a38c11e0aee6a31 (diff)
downloadcluster-overview-15bf2046cbe5392c9beb903b07c2f814a64be571.tar.gz
cluster-overview-15bf2046cbe5392c9beb903b07c2f814a64be571.tar.xz
cluster-overview-15bf2046cbe5392c9beb903b07c2f814a64be571.zip
Move some cman-cluster-specific edges: lib{-edges,cman}
Also start using as of now enabled "common_{src,dst}_of" to allow for edges -> metadata association (used in "on_click") Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'lib_cman.py')
-rw-r--r--lib_cman.py35
1 files changed, 32 insertions, 3 deletions
diff --git a/lib_cman.py b/lib_cman.py
index 78bdb1a..3ed8d98 100644
--- a/lib_cman.py
+++ b/lib_cman.py
@@ -11,6 +11,35 @@ from lib_edges import *
from lib_shared import *
+#
+# edges/protocols
+#
+
+class CmanRicciRPC(ApplicationSpecificProtocol, Delegate):
+ """[ricci client] -> ricci"""
+ defaults = dict((
+ LABEL('port 11111'),
+ ))
+ summary = 'ricci RPC is a customized variant of XMLRPC'
+ web = 'http://www.sourceware.org/cluster/conga/ricci_api/index.html'
+ #web = 'http://www.sourceware.org/cluster/conga/ricci_api/ricci_api.html'
+
+
+class CmanRicciRPCSrc(object):
+ common_src_of = CmanRicciRPC
+
+
+class CmanLuciHTTPS(HTTPS, Delegate):
+ """[web browser] -> luci"""
+ defaults = dict((
+ LABEL('port 8084'),
+ ))
+
+
+#
+# nodes
+#
+
class CmanRGManager(Daemon):
defaults = dict((
LABEL('rgmanager'),
@@ -112,7 +141,7 @@ class CmanRicci(Daemon):
)
-class CmanCcs(Executable):
+class CmanCcs(Executable, CmanRicciRPCSrc):
defaults = dict((
LABEL('ccs'),
))
@@ -140,7 +169,7 @@ class CmanCcs(Executable):
)
-class CmanCcsSync(Executable):
+class CmanCcsSync(Executable, CmanRicciRPCSrc):
defaults = dict((
LABEL('ccs_sync'),
))
@@ -160,7 +189,7 @@ class CmanCcsSync(Executable):
)
-class CmanLuci(Daemon):
+class CmanLuci(Daemon, CmanRicciRPCSrc, HTTPSDst):
defaults = dict((
LABEL('luci'),
))