com.testdroid.api.model.APIHealthCheck Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
package com.testdroid.api.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.testdroid.api.APIEntity;
/**
* @author Michał Szpruta
*/
public class APIHealthCheck extends APIEntity {
private boolean dbHealthy;
private boolean rabbitMQHealthy;
private int status;
public APIHealthCheck() {
}
public APIHealthCheck(boolean dbHealthy, boolean rabbitmqHealthy, int status) {
this.dbHealthy = dbHealthy;
this.rabbitMQHealthy = rabbitmqHealthy;
this.status = status;
}
public boolean isDbHealthy() {
return dbHealthy;
}
public void setDbHealthy(boolean dbHealthy) {
this.dbHealthy = dbHealthy;
}
public boolean isRabbitMQHealthy() {
return rabbitMQHealthy;
}
public void setRabbitMQHealthy(boolean rabbitmqHealthy) {
this.rabbitMQHealthy = rabbitmqHealthy;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
@Override
@JsonIgnore
protected void clone(T from) {
APIHealthCheck original = (APIHealthCheck) from;
cloneBase(from);
this.dbHealthy = original.dbHealthy;
this.rabbitMQHealthy = original.rabbitMQHealthy;
this.status = original.status;
}
}