def retrieveVals(self):
nginxInfo = NginxInfo(self._host, self._port,<EOL>self._user, self._password, <EOL>self._statuspath, self._ssl)<EOL>stats = nginxInfo.getServerStats()<EOL>if stats:<EOL><INDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', stats['<STR_LIT>'])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', stats['<STR_LIT>'])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', stats['<STR_LIT>'])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>stats['<STR_LIT>'])<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', stats['<STR_LIT>'])<EOL>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <EOL>stats['<STR_LIT>'] - stats['<STR_LIT>'])<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', stats['<STR_LIT>'])<EOL><DEDENT>if self.hasGraph('<STR_LIT>'):<EOL><INDENT>curr_stats = (stats['<STR_LIT>'], stats['<STR_LIT>'])<EOL>hist_stats = self.restoreState()<EOL>if hist_stats:<EOL><INDENT>prev_stats = hist_stats[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>hist_stats = []<EOL>prev_stats = (<NUM_LIT:0>,<NUM_LIT:0>)<EOL><DEDENT>conns = max(curr_stats[<NUM_LIT:0>] - prev_stats[<NUM_LIT:0>], <NUM_LIT:0>)<EOL>reqs = max(curr_stats[<NUM_LIT:1>] - prev_stats[<NUM_LIT:1>], <NUM_LIT:0>)<EOL>if conns > <NUM_LIT:0>:<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>',<EOL>float(reqs) / float(conns))<EOL><DEDENT>else:<EOL><INDENT>self.setGraphVal('<STR_LIT>', '<STR_LIT>', <NUM_LIT:0>)<EOL><DEDENT>hist_stats.append(curr_stats)<EOL>self.saveState(hist_stats[-self._numSamples:])<EOL><DEDENT><DEDENT>
Retrieve values for graphs.