def getConnectorStats(self):
if self._statusxml is None:<EOL><INDENT>self.initStats()<EOL><DEDENT>connnodes = self._statusxml.findall('<STR_LIT>')<EOL>connstats = {}<EOL>if connnodes:<EOL><INDENT>for connnode in connnodes:<EOL><INDENT>namestr = connnode.get('<STR_LIT:name>')<EOL>if namestr is not None:<EOL><INDENT>mobj = re.match('<STR_LIT>', namestr)<EOL>if mobj:<EOL><INDENT>proto = mobj.group(<NUM_LIT:1>)<EOL>port = int(mobj.group(<NUM_LIT:2>))<EOL>connstats[port] = {'<STR_LIT>': proto}<EOL>for tag in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>stats = {}<EOL>node = connnode.find(tag)<EOL>if node is not None:<EOL><INDENT>for (key,val) in node.items():<EOL><INDENT>if re.search('<STR_LIT>', key):<EOL><INDENT>stats[key] = float(val) / <NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>stats[key] = util.parse_value(val)<EOL><DEDENT><DEDENT><DEDENT>if stats:<EOL><INDENT>connstats[port][tag] = stats<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return connstats<EOL>
Return dictionary of Connector Stats for Apache Tomcat Server.

        @return: Nested dictionary of Connector Stats.