@tornado.gen.coroutine<EOL><INDENT>def get(self):<DEDENT>
<EOL>clusters = self.get_arguments(constants.PARAM_CLUSTER)<EOL>environs = self.get_arguments(constants.PARAM_ENVIRON)<EOL>role = self.get_argument_role()<EOL>ret = {}<EOL>topologies = self.tracker.topologies<EOL>for topology in topologies:<EOL><INDENT>cluster = topology.cluster<EOL>environ = topology.environ<EOL>if not cluster or not environ:<EOL><INDENT>continue<EOL><DEDENT>if clusters and cluster not in clusters:<EOL><INDENT>continue<EOL><DEDENT>if environs and environ not in environs:<EOL><INDENT>continue<EOL><DEDENT>if cluster not in ret:<EOL><INDENT>ret[cluster] = {}<EOL><DEDENT>if environ not in ret[cluster]:<EOL><INDENT>ret[cluster][environ] = {}<EOL><DEDENT>try:<EOL><INDENT>topology_info = self.tracker.getTopologyInfo(topology.name, cluster, role, environ)<EOL>if topology_info and "<STR_LIT>" in topology_info:<EOL><INDENT>ret[cluster][environ][topology.name] = topology_info["<STR_LIT>"]<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>self.write_success_response(ret)<EOL>
get method