[유치수] [NOBTS] hide self called request from calltree.

git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@732 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
Chisu Yu
2012-10-08 02:39:16 +00:00
parent 84d6890ef5
commit 2980407a69
2 changed files with 14 additions and 4 deletions
@@ -75,11 +75,17 @@ public class ServerCallTree {
fromServer = servers.get(spanIdToServerId.get(PREFIX_CLIENT + to));
}
ServerRequest ServerRequest = new ServerRequest(fromServer, toServer);
if (ServerRequests.containsKey(ServerRequest.getId())) {
ServerRequests.get(ServerRequest.getId()).increaseCallCount();
ServerRequest serverRequest = new ServerRequest(fromServer, toServer);
// TODO: local call인 경우 보여주지 않음.
if (serverRequest.isSelfCalled()) {
continue;
}
if (ServerRequests.containsKey(serverRequest.getId())) {
ServerRequests.get(serverRequest.getId()).increaseCallCount();
} else {
ServerRequests.put(ServerRequest.getId(), ServerRequest);
ServerRequests.put(serverRequest.getId(), serverRequest);
}
}
@@ -17,6 +17,10 @@ public class ServerRequest {
this.id = from.getId() + to.getId();
}
public boolean isSelfCalled() {
return from.getSequence() == to.getSequence();
}
public void increaseCallCount() {
callCount++;
}