All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.testdroid.api.model.APIHealthCheck Maven / Gradle / Ivy

There is a newer version: 3.34.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy