Formatting Code base with ktlint
[ccsdk/cds.git] / ms / sdclistener / application / src / main / java / org / onap / ccsdk / cds / sdclistener / actuator / indicator / SDCListenerCustomIndicator.java
index 11fd2c2..1a5bafc 100644 (file)
@@ -16,7 +16,6 @@
 
 package org.onap.ccsdk.cds.sdclistener.actuator.indicator;
 
-
 import org.onap.ccsdk.cds.blueprintsprocessor.healthapi.domain.HealthApiResponse;
 import org.onap.ccsdk.cds.blueprintsprocessor.healthapi.domain.HealthCheckStatus;
 import org.onap.ccsdk.cds.blueprintsprocessor.healthapi.service.health.SDCListenerHealthCheck;
@@ -24,25 +23,28 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.actuate.health.AbstractHealthIndicator;
 import org.springframework.boot.actuate.health.Health.Builder;
 import org.springframework.stereotype.Component;
+
 /**
  * Health Indicator for SDCListener.
+ *
  * @author Shaaban Ebrahim
  * @version 1.0
  */
 @Component
 public class SDCListenerCustomIndicator extends AbstractHealthIndicator {
 
-  @Autowired
-  private SDCListenerHealthCheck sDCListenerHealthCheck;
+    @Autowired
+    private SDCListenerHealthCheck sDCListenerHealthCheck;
 
-  @Override
-  protected void doHealthCheck(Builder builder) {
-    HealthApiResponse healthAPIResponse = sDCListenerHealthCheck.retrieveEndpointExecutionStatus();
-    if (healthAPIResponse.getStatus() == HealthCheckStatus.UP) {
-      builder.up();
-    } else {
-      builder.down();
+    @Override
+    protected void doHealthCheck(Builder builder) {
+        HealthApiResponse healthAPIResponse = sDCListenerHealthCheck.retrieveEndpointExecutionStatus();
+        if (healthAPIResponse.getStatus() == HealthCheckStatus.UP) {
+            builder.up();
+        } else {
+            builder.down();
+        }
+        builder.withDetail("Services", healthAPIResponse.getChecks());
     }
-    builder.withDetail("Services", healthAPIResponse.getChecks());
-  }
+
 }