diff options
author | Alan Conway <aconway@apache.org> | 2010-10-27 18:01:27 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-10-27 18:01:27 +0000 |
commit | 326dddd0d0d48401d14ca93044b3fc0e35ad87d9 (patch) | |
tree | 019a45480d8cdf832f62d7176b7a10a5d0971535 /python | |
parent | aae11121cfcf891b2365241141f9ab9cb47d3024 (diff) | |
download | qpid-python-326dddd0d0d48401d14ca93044b3fc0e35ad87d9.tar.gz |
Revert experimental cluster code, too close to 0.8 release.
Reverts revisions:
r1023966 "Introduce broker::Cluster interface."
r1024275 "Fix compile error: outline set/getCluster fucntions on Broker."
r1027210 "New cluster: core framework and initial implementation of enqueue logic."
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1028055 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r-- | python/qpid/brokertest.py | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/python/qpid/brokertest.py b/python/qpid/brokertest.py index 5a0fe269f4..4571712ca6 100644 --- a/python/qpid/brokertest.py +++ b/python/qpid/brokertest.py @@ -409,25 +409,17 @@ class Cluster: _cluster_count = 0 - def __init__(self, test, count=0, args=[], expect=EXPECT_RUNNING, wait=True, - cluster2=False): - if cluster2: - cluster_name = "--cluster2-name" - cluster_lib = BrokerTest.cluster2_lib - else: - cluster_name = "--cluster-name" - cluster_lib = BrokerTest.cluster_lib + def __init__(self, test, count=0, args=[], expect=EXPECT_RUNNING, wait=True): self.test = test self._brokers=[] self.name = "cluster%d" % Cluster._cluster_count Cluster._cluster_count += 1 # Use unique cluster name self.args = copy(args) - self.args += [ cluster_name, - "%s-%s:%d" % (self.name, socket.gethostname(), os.getpid()) ] + self.args += [ "--cluster-name", "%s-%s:%d" % (self.name, socket.gethostname(), os.getpid()) ] self.args += [ "--log-enable=info+", "--log-enable=debug+:cluster"] - assert cluster_lib, "Cannot locate cluster plug-in" - self.args += [ "--load-module", cluster_lib ] + assert BrokerTest.cluster_lib, "Cannot locate cluster plug-in" + self.args += [ "--load-module", BrokerTest.cluster_lib ] self.start_n(count, expect=expect, wait=wait) def start(self, name=None, expect=EXPECT_RUNNING, wait=True, args=[], port=0): @@ -453,7 +445,6 @@ class BrokerTest(TestCase): # Environment settings. qpidd_exec = checkenv("QPIDD_EXEC") cluster_lib = os.getenv("CLUSTER_LIB") - cluster2_lib = os.getenv("CLUSTER2_LIB") xml_lib = os.getenv("XML_LIB") qpid_config_exec = os.getenv("QPID_CONFIG_EXEC") qpid_route_exec = os.getenv("QPID_ROUTE_EXEC") @@ -500,9 +491,9 @@ class BrokerTest(TestCase): raise RethrownException("Failed to start broker %s(%s): %s" % (b.name, b.log, e)) return b - def cluster(self, count=0, args=[], expect=EXPECT_RUNNING, wait=True, cluster2=False): + def cluster(self, count=0, args=[], expect=EXPECT_RUNNING, wait=True): """Create and return a cluster ready for use""" - cluster = Cluster(self, count, args, expect=expect, wait=wait, cluster2=cluster2) + cluster = Cluster(self, count, args, expect=expect, wait=wait) return cluster class RethrownException(Exception): |