Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public String dubbo2(HttpServletRequest request) {
}
}
return "A" + serviceTag + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "]" + " -> " +
helloServiceBTwo.hello(JSON.toJSONString(request.getParameterMap()));
helloServiceBTwo.hello2(JSON.toJSONString(request.getParameterMap()));
}

@ApiOperation(value = "Dubbo 限流测试", tags = {"入口应用"})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.alibabacloud.mse.demo.b.service;

public interface HelloServiceBTwo {
String hello(String name);
String hello2(String name);
String slow();
String exception();
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.alibabacloud.mse.demo.b.service;

public interface HelloServiceBTwo {
String hello(String name);
String hello2(String name);
String slow();
String exception();
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public class HelloServiceBTwoImpl implements HelloServiceBTwo {
private static final Random RANDOM = new Random();

@Override
public String hello(String name) {
public String hello2(String name) {
return "B" + serviceTag + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "]" + " params:" + name + " -> " +
helloServiceCTwo.hello(name);
helloServiceCTwo.hello2(name);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.alibabacloud.mse.demo.c.service;

public interface HelloServiceCTwo {
String hello(String name);
String world(String name);
String hello2(String name);
String world2(String name);
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.alibabacloud.mse.demo.c.service;

public interface HelloServiceCTwo {
String hello(String name);
String world(String name);
String hello2(String name);
String world2(String name);
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class HelloServiceCTwoImpl implements HelloServiceCTwo {
boolean throwException;

@Override
public String hello(String name) {
public String hello2(String name) {

if (throwException) {
throw new RuntimeException();
Expand All @@ -59,7 +59,7 @@ public String hello(String name) {
}

@Override
public String world(String name) {
public String world2(String name) {
return "C" + serviceTag + "[" + inetUtils.findFirstNonLoopbackAddress().getHostAddress() + "] -> " + name;
}

Expand Down