summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java24
1 files changed, 16 insertions, 8 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java b/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java
index 2e4f54f153..8afd2fb4c9 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/common/api/HealthCheckInfo.java
@@ -27,14 +27,14 @@ import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
public class HealthCheckInfo {
-
- private HealthCheckComponent healthCheckComponent;
+
+ private String healthCheckComponent;
private HealthCheckStatus healthCheckStatus;
private String version;
private String description;
private List<HealthCheckInfo> componentsInfo;
- public HealthCheckInfo(HealthCheckComponent healthCheckComponent, HealthCheckStatus healthCheckStatus,
+ public HealthCheckInfo(String healthCheckComponent, HealthCheckStatus healthCheckStatus,
String version, String description) {
super();
this.healthCheckComponent = healthCheckComponent;
@@ -43,7 +43,7 @@ public class HealthCheckInfo {
this.description = description;
}
- public HealthCheckInfo(HealthCheckComponent healthCheckComponent, HealthCheckStatus healthCheckStatus,
+ public HealthCheckInfo(String healthCheckComponent, HealthCheckStatus healthCheckStatus,
String version, String description, List<HealthCheckInfo> componentsInfo) {
super();
this.healthCheckComponent = healthCheckComponent;
@@ -57,7 +57,7 @@ public class HealthCheckInfo {
super();
}
- public HealthCheckComponent getHealthCheckComponent() {
+ public String getHealthCheckComponent() {
return healthCheckComponent;
}
@@ -65,6 +65,10 @@ public class HealthCheckInfo {
return healthCheckStatus;
}
+ public void setHealthCheckStatus(HealthCheckStatus healthCheckStatus) {
+ this.healthCheckStatus = healthCheckStatus;
+ }
+
public List<HealthCheckInfo> getComponentsInfo() {
return componentsInfo;
}
@@ -85,11 +89,15 @@ public class HealthCheckInfo {
return description;
}
- public enum HealthCheckComponent {
- FE, BE, TITAN, DE, ON_BOARDING, CASSANDRA,
- CAS, ZU;//Amdocs components
+ public void setDescription(String description) {
+ this.description = description;
}
+ /*public enum HealthCheckComponent {
+ FE, BE, TITAN, DE, ON_BOARDING, CASSANDRA, DCAE,
+ CAS, ZU;//Amdocs components
+ }*/
+
public enum HealthCheckStatus {
UP, DOWN, UNKNOWN;
}