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

mesosphere.marathon.client.model.v2.HealthCheckResult Maven / Gradle / Ivy

The newest version!
package mesosphere.marathon.client.model.v2;

import mesosphere.marathon.client.utils.ModelUtils;

/**
 * Represents information about attempting a {@link HealthCheck} on a task.
 *
 * @author Eric Bottard
 */
public class HealthCheckResult {

	private boolean alive;
	private int consecutiveFailures;
	private String firstSuccess;
	private String lastFailure;
	private String lastSuccess;
	private String taskId;

	public boolean isAlive() {
		return alive;
	}

	public void setAlive(boolean alive) {
		this.alive = alive;
	}

	public int getConsecutiveFailures() {
		return consecutiveFailures;
	}

	public void setConsecutiveFailures(int consecutiveFailures) {
		this.consecutiveFailures = consecutiveFailures;
	}

	public String getFirstSuccess() {
		return firstSuccess;
	}

	public void setFirstSuccess(String firstSuccess) {
		this.firstSuccess = firstSuccess;
	}

	public String getLastFailure() {
		return lastFailure;
	}

	public void setLastFailure(String lastFailure) {
		this.lastFailure = lastFailure;
	}

	public String getLastSuccess() {
		return lastSuccess;
	}

	public void setLastSuccess(String lastSuccess) {
		this.lastSuccess = lastSuccess;
	}

	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	@Override
	public String toString() {
		return ModelUtils.toString(this);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy