DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_be / src / main / java / org / onap / sdc / dcae / composition / controller / health / ToscaLabHealthState.java
1 package org.onap.sdc.dcae.composition.controller.health;
2
3 import org.onap.sdc.dcae.composition.restmodels.health.ComponentsInfo;
4 import org.onap.sdc.dcae.composition.util.DcaeBeConstants;
5 import org.springframework.context.annotation.Scope;
6 import org.springframework.stereotype.Component;
7
8 @Scope(value = "singleton")
9 @Component
10 public class ToscaLabHealthState {
11         private ComponentsInfo toscaLabHealthResponse;
12         
13         public ToscaLabHealthState() {
14                 super();
15                 toscaLabHealthResponse = new ComponentsInfo();
16                 toscaLabHealthResponse.setDescription("Not up yet");
17                 toscaLabHealthResponse.setHealthCheckComponent(DcaeBeConstants.Health.TOSCA_LAB);
18                 toscaLabHealthResponse.setHealthCheckStatus(DcaeBeConstants.Health.DOWN);
19         }
20
21         public ComponentsInfo getToscaLabHealthResponse() {
22                 return toscaLabHealthResponse;
23         }
24
25         public void setToscaLabHealthResponse(ComponentsInfo toscaLabHealthResponse) {
26                 this.toscaLabHealthResponse = toscaLabHealthResponse;
27         }
28         
29 }