cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: rmccabe@sourceware.org <rmccabe@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] conga/luci/site/luci/Extensions/ClusterModel M ...
Date: 8 May 2007 21:31:04 -0000	[thread overview]
Message-ID: <20070508213104.5866.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	EXPERIMENTAL
Changes by:	rmccabe at sourceware.org	2007-05-08 21:31:00

Modified files:
	luci/site/luci/Extensions/ClusterModel: ModelBuilder.py 
Added files:
	luci/site/luci/Extensions/ClusterModel: SAPDatabase.py 
	                                        SAPInstance.py 

Log message:
	recognize SAPInstance and SAPDatabase tags in cluster.conf

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/SAPDatabase.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/SAPInstance.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.1.2.1&r2=1.1.2.2

--- conga/luci/site/luci/Extensions/ClusterModel/Attic/ModelBuilder.py	2007/05/03 20:16:38	1.1.2.1
+++ conga/luci/site/luci/Extensions/ClusterModel/Attic/ModelBuilder.py	2007/05/08 21:30:59	1.1.2.2
@@ -24,6 +24,8 @@
 from OpenLDAP import OpenLDAP
 from Postgres8 import Postgres8
 from Tomcat5 import Tomcat5
+from SAPInstance import SAPInstance
+from SAPDatabase import SAPDatabase
 from Multicast import Multicast
 from FenceDaemon import FenceDaemon
 from FenceXVMd import FenceXVMd
@@ -81,6 +83,8 @@
              'script': Script,
              'nfsexport': NFSExport, 
              'nfsclient': NFSClient,
+             'SAPInstance': SAPInstance,
+             'SABDatabase': SAPDatabase,
              'device': Device }
 
 
@@ -750,7 +754,16 @@
   
   def getResourceManagerPtr(self):
     return self.resourcemanager_ptr
-      
+
+  def getResourceByName(self, name):
+    resources = self.resources_ptr.getChildren()
+    res = filter(lambda x: x.getName() == name, resources)
+    if not res or len(res) < 1:
+      raise KeyError, name
+    if len(res) > 1:
+      raise Exception, 'More than one resource is named "%s"' % name
+    return res[0]
+
   def getClusterNodesPtr(self):
     return self.clusternodes_ptr
         



             reply	other threads:[~2007-05-08 21:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08 21:31 rmccabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-07-26  5:57 [Cluster-devel] conga/luci/site/luci/Extensions/ClusterModel M rmccabe
2007-08-28 16:57 rmccabe
2007-09-11 19:04 rmccabe
2009-01-22 20:35 rmccabe
2009-01-22 21:31 rmccabe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070508213104.5866.qmail@sourceware.org \
    --to=rmccabe@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).