[유치수] [NOBTS] add server calltree

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@720 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2012-09-28 04:54:42 +00:00
parent 7ef13278ab
commit 52c97fa186
11 changed files with 308 additions and 96 deletions
@@ -1,6 +1,5 @@
package com.nhn.hippo.web.controller;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
@@ -38,21 +37,10 @@ public class FlowChartController {
*/
@RequestMapping(value = "/flow", method = RequestMethod.GET)
public String arcus(Model model, @RequestParam("host") String[] hosts, @RequestParam("from") long from, @RequestParam("to") long to) {
/**
* get agentId list from 'Servers'
*/
String[] selectAgentIds = flow.selectAgentIds(hosts);
System.out.println("selectedAgentIds=" + Arrays.toString(selectAgentIds));
String[] agentIds = flow.selectAgentIds(hosts);
List<byte[]> traceIds = flow.selectTraceIdsFromTraceIndex(agentIds, from, to);
RPCCallTree callTree = flow.selectRPCCallTree(traceIds);
/**
* get traceId list from 'TraceIndex'
*/
List<byte[]> traceIds = flow.selectTraceIdsFromTraceIndex(hosts, from, to);
/**
* get call tree
*/
RPCCallTree callTree = flow.selectCallTree(traceIds);
model.addAttribute("nodes", callTree.getNodes());
model.addAttribute("links", callTree.getLinks());
model.addAttribute("value", "hello world");