Authored by qinchao

down mha

@@ -60,10 +60,11 @@ public class MysqlMonitorCtrl { @@ -60,10 +60,11 @@ public class MysqlMonitorCtrl {
60 60
61 @RequestMapping(value="/downMhaNode",method = RequestMethod.POST) 61 @RequestMapping(value="/downMhaNode",method = RequestMethod.POST)
62 @ResponseBody 62 @ResponseBody
63 - public BaseResponse downMhaNode(String app,String ip) { 63 + public BaseResponse downMhaNode(String app,String ip,String port) {
64 Map<String,String> map=new HashMap<>(); 64 Map<String,String> map=new HashMap<>();
65 - map.put("ip",ip);  
66 map.put("app",app); 65 map.put("app",app);
  66 + map.put("ip",ip);
  67 + map.put("port",port);
67 return httpRestClient.defaultGet(HttpUriContants.MYSQL_MONITOR_DOWN_MHA_NODE,BaseResponse.class,map); 68 return httpRestClient.defaultGet(HttpUriContants.MYSQL_MONITOR_DOWN_MHA_NODE,BaseResponse.class,map);
68 } 69 }
69 } 70 }
@@ -272,7 +272,8 @@ @@ -272,7 +272,8 @@
272 272
273 var param = { 273 var param = {
274 app:cfgName, 274 app:cfgName,
275 - ip:ip 275 + ip:ip,
  276 + port:port
276 }; 277 };
277 278
278 $.ajax({ 279 $.ajax({