summaryrefslogtreecommitdiffstats
path: root/dcaedt_be/src/main/java/org/onap/sdc/dcae/composition/controller/health/ToscaLabHealthState.java
blob: 6fe469f7f4f5261e4dda049b88c00dfb2cce90fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.onap.sdc.dcae.composition.controller.health;

import org.onap.sdc.dcae.composition.restmodels.health.ComponentsInfo;
import org.onap.sdc.dcae.composition.util.DcaeBeConstants;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Scope(value = "singleton")
@Component
public class ToscaLabHealthState {
	private ComponentsInfo toscaLabHealthResponse;
	
	public ToscaLabHealthState() {
		super();
		toscaLabHealthResponse = new ComponentsInfo();
		toscaLabHealthResponse.setDescription("Not up yet");
		toscaLabHealthResponse.setHealthCheckComponent(DcaeBeConstants.Health.TOSCA_LAB);
		toscaLabHealthResponse.setHealthCheckStatus(DcaeBeConstants.Health.DOWN);
	}

	public ComponentsInfo getToscaLabHealthResponse() {
		return toscaLabHealthResponse;
	}

	public void setToscaLabHealthResponse(ComponentsInfo toscaLabHealthResponse) {
		this.toscaLabHealthResponse = toscaLabHealthResponse;
	}
	
}