Code Review
/
holmes
/
rule-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Allocate Rule
[holmes/rule-management.git]
/
rulemgt
/
src
/
main
/
java
/
org
/
onap
/
holmes
/
rulemgt
/
bolt
/
enginebolt
/
EngineWrapper.java
diff --git
a/rulemgt/src/main/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java
b/rulemgt/src/main/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java
index
18a326e
..
b0bd1f5
100644
(file)
--- a/
rulemgt/src/main/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java
+++ b/
rulemgt/src/main/java/org/onap/holmes/rulemgt/bolt/enginebolt/EngineWrapper.java
@@
-34,10
+34,10
@@
public class EngineWrapper {
@Inject
\r
private EngineService engineService;
\r
\r
@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
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
} catch (Exception e) {
\r
throw new CorrelationException("Failed to call the rule deployment RESTful API.", e);
\r
}
\r
@@
-55,10
+55,10
@@
public class EngineWrapper {
}
\r
}
\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
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
} catch (Exception e) {
\r
throw new CorrelationException("Failed to call the rule deleting RESTful API.", e);
\r
}
\r
@@
-70,12
+70,12
@@
public class EngineWrapper {
}
\r
}
\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
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
} catch (Exception e) {
\r
throw new CorrelationException("Failed to call the rule verification RESTful API.", e);
\r
}
\r