com.capitalone.dashboard.model.Service Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Core package shared by API layer and Microservices
package com.capitalone.dashboard.model;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.HashSet;
import java.util.Set;
/**
* A product or service offered by an Application.
*/
@Document(collection="services")
public class Service extends BaseModel {
private String name;
private String url;
private String applicationName;
private ObjectId dashboardId;
private ServiceStatus status;
private String message;
private long lastUpdated;
private Set dependedBy = new HashSet<>();
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getApplicationName() {
return applicationName;
}
public void setApplicationName(String applicationName) {
this.applicationName = applicationName;
}
public ObjectId getDashboardId() {
return dashboardId;
}
public void setDashboardId(ObjectId dashboardId) {
this.dashboardId = dashboardId;
}
public ServiceStatus getStatus() {
return status;
}
public void setStatus(ServiceStatus status) {
this.status = status;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public long getLastUpdated() {
return lastUpdated;
}
public void setLastUpdated(long lastUpdated) {
this.lastUpdated = lastUpdated;
}
public Set getDependedBy() {
return dependedBy;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy