summaryrefslogtreecommitdiffstats
path: root/feature-healthcheck/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'feature-healthcheck/src/main/java/org')
-rw-r--r--feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java
index 5cbcf555..cc6f02e0 100644
--- a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java
+++ b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java
@@ -144,6 +144,7 @@ class HealthCheckMonitor implements HealthCheck {
/**
* {@inheritDoc}
*/
+ @Override
public Reports healthCheck() {
Reports reports = new Reports();
reports.healthy = PolicyEngine.manager.isAlive();
@@ -152,8 +153,8 @@ class HealthCheckMonitor implements HealthCheck {
engineReport.healthy = PolicyEngine.manager.isAlive();
engineReport.name = "PDP-D";
engineReport.url = "self";
- engineReport.code = (PolicyEngine.manager.isAlive()) ? 200 : 500;
- engineReport.message = (PolicyEngine.manager.isAlive()) ? "alive" : "not alive";
+ engineReport.code = PolicyEngine.manager.isAlive() ? 200 : 500;
+ engineReport.message = PolicyEngine.manager.isAlive() ? "alive" : "not alive";
reports.details.add(engineReport);
for (HttpClient client : clients) {