def retrieveVals(self):
if self._genStats is None:<EOL><INDENT>self._genStats = self._dbconn.getStats()<EOL><DEDENT>if self._genVars is None:<EOL><INDENT>self._genVars = self._dbconn.getParams()<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.graphEnabled('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>for field in self.getGraphFieldList('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', field, <EOL>self._genStats.get('<STR_LIT>' % field))<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>')<EOL>- self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>') <EOL>+ self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>total = self._genVars['<STR_LIT>']<EOL>free = self._genStats['<STR_LIT>']<EOL>used = total - free<EOL><DEDENT>except KeyError:<EOL><INDENT>free = None<EOL>used = None<EOL><DEDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', used)<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', free)<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>hits = self._genStats['<STR_LIT>']<EOL>misses = self._genStats['<STR_LIT>'] - hits<EOL><DEDENT>except KeyError:<EOL><INDENT>hits = None<EOL>misses = None<EOL><DEDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', hits)<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', misses)<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>self._genStats.get('<STR_LIT>'))<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>self._genStats.get('<STR_LIT>'))<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self._procStatus = self._dbconn.getProcessStatus()<EOL>if self._procStatus:<EOL><INDENT>stats = {}<EOL>for field in self.getGraphFieldList('<STR_LIT>'):<EOL><INDENT>stats[field] = <NUM_LIT:0><EOL><DEDENT>for (k, v) in self._procStatus.items():<EOL><INDENT>if stats.has_key(k):<EOL><INDENT>stats[k] = v<EOL><DEDENT>else:<EOL><INDENT>stats['<STR_LIT>'] += v<EOL><DEDENT><DEDENT>for (k,v) in stats.items():<EOL><INDENT>self.setGraphVal('<STR_LIT>', k, v)<EOL><DEDENT><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self._procDB = self._dbconn.getProcessDatabase()<EOL>for db in self._dbList:<EOL><INDENT>self.setGraphVal('<STR_LIT>', db, self._procDB.get(db, <NUM_LIT:0>))<EOL><DEDENT><DEDENT>if self.engineIncluded('<STR_LIT>'):<EOL><INDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>bsize = self._genVars['<STR_LIT>']<EOL>total = self._genVars['<STR_LIT>']<EOL>free = self._genStats['<STR_LIT>'] * bsize<EOL>dirty = self._genStats['<STR_LIT>'] * bsize<EOL>clean = total - free - dirty<EOL><DEDENT>except KeyError:<EOL><INDENT>total = None<EOL>free = None<EOL>dirty = None<EOL>clean = None<EOL><DEDENT>for (field,val) in (('<STR_LIT>', dirty), <EOL>('<STR_LIT>', clean),<EOL>('<STR_LIT>', free),<EOL>('<STR_LIT>', total)):<EOL><INDENT>self.setGraphVal('<STR_LIT>', <EOL>field, val)<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>misses = self._genStats['<STR_LIT>']<EOL>hits = (self._genStats['<STR_LIT>']<EOL>- misses)<EOL><DEDENT>except KeyError:<EOL><INDENT>misses = None<EOL>hits = None<EOL><DEDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', misses)<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', hits)<EOL><DEDENT><DEDENT>if self.engineIncluded('<STR_LIT>'):<EOL><INDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self._genStats['<STR_LIT>'] = (<EOL>self._genStats.get('<STR_LIT>')<EOL>- self._genStats.get('<STR_LIT>'))<EOL>page_size = int(self._genStats.get('<STR_LIT>'))<EOL>for field in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', <EOL>field, <EOL>self._genStats.get('<STR_LIT>'<EOL>% field)<EOL>* page_size)<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>for field in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', field, <EOL>self._genStats.get('<STR_LIT>' % field))<EOL><DEDENT><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>misses = self._genStats['<STR_LIT>']<EOL>hits = (self._genStats['<STR_LIT>']<EOL>- misses)<EOL><DEDENT>except KeyError:<EOL><INDENT>misses = None<EOL>hits = None<EOL><DEDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>misses)<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>hits)<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>for field in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', field, <EOL>self._genStats.get('<STR_LIT>' % field))<EOL><DEDENT><DEDENT><DEDENT>
Retrieve values for graphs.