Author: eallen
Date: 2009-04-08 09:33:08 -0400 (Wed, 08 Apr 2009)
New Revision: 3266
Modified:
mgmt/trunk/cumin/python/cumin/model.py
Log:
Master schema no longer has nodeName. In now uses Name.
Added some stats on Collector
Modified: mgmt/trunk/cumin/python/cumin/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/model.py 2009-04-03 20:17:47 UTC (rev 3265)
+++ mgmt/trunk/cumin/python/cumin/model.py 2009-04-08 13:33:08 UTC (rev 3266)
@@ -734,7 +734,7 @@
return self.model.frame.system.show_object(session, system)
def get_object_name(self, object):
- return object.nodeName
+ return object.Name
class Start(CuminAction):
def do_invoke(self, object, args, completion):
@@ -2682,6 +2682,18 @@
action = GetStartedAction(self, "GetStarted")
action.navigable = False
+ stat = CuminStat(self, "HostsClaimed")
+ stat.title = "Claimed Slots"
+
+ stat = CuminStat(self, "HostsUnclaimed")
+ stat.title = "Unclaimed Slots"
+
+ stat = CuminStat(self, "HostsIdle")
+ stat.title = "Idle Slots"
+
+ stat = CuminStat(self, "HostsTotal")
+ stat.title = "Total Slots"
+
def init(self):
self.frame = self.model.frame.pool.collector