Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

service state to metadata #2361

Merged
merged 1 commit into from
Jan 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public void setPort(Integer port) {
protected LBConfigMetadataStyle lb_config;
protected String primary_service_name;
protected String environment_uuid;
String state;

protected ServiceMetaData(ServiceMetaData that) {
this.serviceId = that.serviceId;
Expand Down Expand Up @@ -153,6 +154,7 @@ protected ServiceMetaData(ServiceMetaData that) {
this.lb_config = that.lb_config;
this.primary_service_name = that.primary_service_name;
this.environment_uuid = that.environment_uuid;
this.state = that.state;
}

public ServiceMetaData(Service service, String serviceName, Stack env, List<String> sidekicks,
Expand Down Expand Up @@ -189,6 +191,7 @@ public ServiceMetaData(Service service, String serviceName, Stack env, List<Stri
this.lb_config = lbConfig;
this.primary_service_name = service.getName();
this.environment_uuid = account.getUuid();
this.state = service.getState();
}

public static String getVip(Service service) {
Expand Down Expand Up @@ -443,4 +446,12 @@ public String getEnvironment_uuid() {
public void setEnvironment_uuid(String environment_uuid) {
this.environment_uuid = environment_uuid;
}

public String getState() {
return state;
}

public void setState(String state) {
this.state = state;
}
}