Commit 4b62dce0 by Nepxion

修改有意义的变量名

parent d240fded
...@@ -184,7 +184,7 @@ public class PluginRouterController { ...@@ -184,7 +184,7 @@ public class PluginRouterController {
if (previousServiceId == null) { if (previousServiceId == null) {
routeFirst(firstRouteEntity, serviceId); routeFirst(firstRouteEntity, serviceId);
retrieveRouteEntityList(routeEntityMap, serviceId).addAll(firstRouteEntity.getChildRouteEntityList()); retrieveRouteEntityList(routeEntityMap, serviceId).addAll(firstRouteEntity.getNexts());
} else { } else {
List<RouteEntity> routeEntityList = retrieveRouteEntityList(routeEntityMap, previousServiceId); List<RouteEntity> routeEntityList = retrieveRouteEntityList(routeEntityMap, previousServiceId);
for (RouteEntity routeEntity : routeEntityList) { for (RouteEntity routeEntity : routeEntityList) {
...@@ -193,7 +193,7 @@ public class PluginRouterController { ...@@ -193,7 +193,7 @@ public class PluginRouterController {
route(routeEntity, serviceId, routeHost, routePort); route(routeEntity, serviceId, routeHost, routePort);
retrieveRouteEntityList(routeEntityMap, serviceId).addAll(routeEntity.getChildRouteEntityList()); retrieveRouteEntityList(routeEntityMap, serviceId).addAll(routeEntity.getNexts());
} }
} }
...@@ -206,14 +206,14 @@ public class PluginRouterController { ...@@ -206,14 +206,14 @@ public class PluginRouterController {
private void routeFirst(RouteEntity routeEntity, String routeServiceId) { private void routeFirst(RouteEntity routeEntity, String routeServiceId) {
List<RouteEntity> routeEntityList = getRouteEntityList(routeServiceId); List<RouteEntity> routeEntityList = getRouteEntityList(routeServiceId);
if (CollectionUtils.isNotEmpty(routeEntityList)) { if (CollectionUtils.isNotEmpty(routeEntityList)) {
routeEntity.getChildRouteEntityList().addAll(routeEntityList); routeEntity.getNexts().addAll(routeEntityList);
} }
} }
private void route(RouteEntity routeEntity, String routeServiceId, String routeHost, int routePort) { private void route(RouteEntity routeEntity, String routeServiceId, String routeHost, int routePort) {
List<RouteEntity> routeEntityList = getRouteEntityList(routeServiceId, routeHost, routePort); List<RouteEntity> routeEntityList = getRouteEntityList(routeServiceId, routeHost, routePort);
if (CollectionUtils.isNotEmpty(routeEntityList)) { if (CollectionUtils.isNotEmpty(routeEntityList)) {
routeEntity.getChildRouteEntityList().addAll(routeEntityList); routeEntity.getNexts().addAll(routeEntityList);
} }
} }
......
...@@ -28,7 +28,7 @@ public class RouteEntity implements Serializable { ...@@ -28,7 +28,7 @@ public class RouteEntity implements Serializable {
private String host; private String host;
private int port; private int port;
private List<RouteEntity> childRouteEntityList = new ArrayList<RouteEntity>(); private List<RouteEntity> nexts = new ArrayList<RouteEntity>();
public String getServiceId() { public String getServiceId() {
return serviceId; return serviceId;
...@@ -62,12 +62,12 @@ public class RouteEntity implements Serializable { ...@@ -62,12 +62,12 @@ public class RouteEntity implements Serializable {
this.port = port; this.port = port;
} }
public List<RouteEntity> getChildRouteEntityList() { public List<RouteEntity> getNexts() {
return childRouteEntityList; return nexts;
} }
public void setChildRouteEntityList(List<RouteEntity> childRouteEntityList) { public void setNexts(List<RouteEntity> nexts) {
this.childRouteEntityList = childRouteEntityList; this.nexts = nexts;
} }
public String toInfo() { public String toInfo() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment