@tornado.gen.coroutine<EOL><INDENT>def get(self):<DEDENT>
try:<EOL><INDENT>cluster = self.get_argument_cluster()<EOL>role = self.get_argument_role()<EOL>environ = self.get_argument_environ()<EOL>topology_name = self.get_argument_topology()<EOL>container = self.get_argument(constants.PARAM_CONTAINER)<EOL>path = self.get_argument(constants.PARAM_PATH)<EOL>offset = self.get_argument_offset()<EOL>length = self.get_argument_length()<EOL>topology_info = self.tracker.getTopologyInfo(topology_name, cluster, role, environ)<EOL>stmgr_id = "<STR_LIT>" + container<EOL>stmgr = topology_info["<STR_LIT>"]["<STR_LIT>"][stmgr_id]<EOL>host = stmgr["<STR_LIT:host>"]<EOL>shell_port = stmgr["<STR_LIT>"]<EOL>file_data_url = "<STR_LIT>" %(host, shell_port, path, offset, length)<EOL>http_client = tornado.httpclient.AsyncHTTPClient()<EOL>response = yield http_client.fetch(file_data_url)<EOL>self.write_success_response(json.loads(response.body))<EOL>self.finish()<EOL><DEDENT>except Exception as e:<EOL><INDENT>Log.debug(traceback.format_exc())<EOL>self.write_error_response(e)<EOL><DEDENT>
get method