mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-18 01:06:03 +10:00
[강운덕] [PINPOINT-258] api의 순서를 source, dest, time으로 변경함.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-web/trunk@3293 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package com.nhn.pinpoint.web.controller;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.nhn.pinpoint.web.util.Limiter;
|
||||
import com.nhn.pinpoint.web.vo.Application;
|
||||
import org.slf4j.Logger;
|
||||
@@ -13,7 +11,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import com.nhn.pinpoint.common.ServiceType;
|
||||
import com.nhn.pinpoint.web.applicationmap.ApplicationMap;
|
||||
import com.nhn.pinpoint.web.service.ApplicationMapService;
|
||||
import com.nhn.pinpoint.web.util.TimeUtils;
|
||||
@@ -106,7 +103,7 @@ public class ApplicationMapController {
|
||||
final Application sourceApplication = new Application(srcApplicationName, srcServiceType);
|
||||
final Application destinationApplication = new Application(destApplicationName, destServiceType);
|
||||
|
||||
LinkStatistics linkStatistics = applicationMapService.linkStatistics(from, to, sourceApplication, destinationApplication);
|
||||
LinkStatistics linkStatistics = applicationMapService.linkStatistics(sourceApplication, destinationApplication, from, to);
|
||||
|
||||
model.addAttribute("from", from);
|
||||
model.addAttribute("to", to);
|
||||
|
||||
@@ -18,5 +18,5 @@ public interface ApplicationMapService {
|
||||
*/
|
||||
public ApplicationMap selectApplicationMap(Application sourceApplication, long from, long to);
|
||||
|
||||
public LinkStatistics linkStatistics(long from, long to, Application sourceApplication, Application destinationApplication);
|
||||
public LinkStatistics linkStatistics(Application sourceApplication, Application destinationApplication, long from, long to);
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ public class ApplicationMapServiceImpl implements ApplicationMapService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public LinkStatistics linkStatistics(long from, long to, Application sourceApplication, Application destinationApplication) {
|
||||
public LinkStatistics linkStatistics(Application sourceApplication, Application destinationApplication, long from, long to) {
|
||||
if (sourceApplication == null) {
|
||||
throw new NullPointerException("sourceApplication must not be null");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user