summaryrefslogtreecommitdiffstats
path: root/feature-healthcheck/src/main
diff options
context:
space:
mode:
authorrama-huawei <rama.subba.reddy.s@huawei.com>2017-09-21 14:56:51 +0530
committerRama SubbaReddy <rama.subba.reddy.s@huawei.com>2017-09-21 12:54:16 +0000
commit5a928151f308602fb091a728c739c0aea2106c8b (patch)
tree608ce53be1f17aa70561b6194bd8bc0833d95782 /feature-healthcheck/src/main
parent642936382b388b6d7574c21f04909abb42477c9d (diff)
Added diamond symbol on RHS
Removed useless parentheses Issue-ID: POLICY-239 Change-Id: Icad445f49cc619d71f71ef913f2592d5c7ebf29c Signed-off-by: rama-huawei <rama.subba.reddy.s@huawei.com>
Diffstat (limited to 'feature-healthcheck/src/main')
-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) {