[rhmessaging-commits] rhmessaging commits: r3624 - mgmt/trunk/mint/python/mint.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Mon Sep 14 15:49:52 EDT 2009
Author: justi9
Date: 2009-09-14 15:49:52 -0400 (Mon, 14 Sep 2009)
New Revision: 3624
Modified:
mgmt/trunk/mint/python/mint/model.py
Log:
A method for checking whether we are connected to a qmf server
Modified: mgmt/trunk/mint/python/mint/model.py
===================================================================
--- mgmt/trunk/mint/python/mint/model.py 2009-09-14 15:21:33 UTC (rev 3623)
+++ mgmt/trunk/mint/python/mint/model.py 2009-09-14 19:49:52 UTC (rev 3624)
@@ -274,6 +274,15 @@
finally:
self.unlock()
+ def isConnected(self):
+ self.lock()
+ try:
+ for broker in self.mintBrokersByUrl.values():
+ if broker.connected:
+ return True
+ finally:
+ self.unlock()
+
def getMintBrokerByQmfBroker(self, qbroker):
self.lock()
try:
More information about the rhmessaging-commits
mailing list