@classmethod<EOL><INDENT>def singleton(self, poolname, authkey):<DEDENT>
global CONNECTION_MAP<EOL>mapkey = "<STR_LIT>" % (poolname, authkey)<EOL>if not mapkey in CONNECTION_MAP:<EOL><INDENT>CONNECTION_MAP[mapkey] = Connection(poolname, authkey)<EOL><DEDENT>return CONNECTION_MAP[mapkey]<EOL>
Get a singleton of a connection