@Inject\r
private EngineService engineService;\r
\r
- public String deployEngine(CorrelationDeployRule4Engine correlationRule) throws CorrelationException {\r
+ public String deployEngine(CorrelationDeployRule4Engine correlationRule,String ip) throws CorrelationException {\r
HttpResponse response;\r
try {\r
- response = engineService.deploy(correlationRule);\r
+ response = engineService.deploy(correlationRule, ip);\r
} catch (Exception e) {\r
throw new CorrelationException("Failed to call the rule deployment RESTful API.", e);\r
}\r
}\r
}\r
\r
- public boolean deleteRuleFromEngine(String packageName) throws CorrelationException {\r
+ public boolean deleteRuleFromEngine(String packageName,String ip) throws CorrelationException {\r
HttpResponse response;\r
try {\r
- response = engineService.delete(packageName);\r
+ response = engineService.delete(packageName, ip);\r
} catch (Exception e) {\r
throw new CorrelationException("Failed to call the rule deleting RESTful API.", e);\r
}\r
}\r
}\r
\r
- public boolean checkRuleFromEngine(CorrelationCheckRule4Engine correlationCheckRule4Engine)\r
+ public boolean checkRuleFromEngine(CorrelationCheckRule4Engine correlationCheckRule4Engine,String ip)\r
throws CorrelationException {\r
log.info("Rule Contents: " + correlationCheckRule4Engine.getContent());\r
HttpResponse response;\r
try {\r
- response = engineService.check(correlationCheckRule4Engine);\r
+ response = engineService.check(correlationCheckRule4Engine, ip);\r
} catch (Exception e) {\r
throw new CorrelationException("Failed to call the rule verification RESTful API.", e);\r
}\r