- public String deployEngine(CorrelationDeployRule4Engine correlationRule) throws CorrelationException {\r
- HttpResponse response;\r
- try {\r
- response = engineService.deploy(correlationRule);\r
- } catch (Exception e) {\r
- throw new CorrelationException("Failed to call the rule deployment RESTful API.", e);\r
- }\r
- if (response.getStatusLine().getStatusCode() == RuleMgtConstant.RESPONSE_STATUS_OK) {\r
- log.info("Succeeded in calling the rule deployment RESTful API from the engine management service.");\r
+ public String deployEngine(CorrelationDeployRule4Engine correlationRule, String ip) throws CorrelationException {\r
+ String response = engineService.deploy(correlationRule, ip);\r
+ if (response != null) {\r