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

org.moskito.controlagent.data.status.ThresholdStatusHolder Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.moskito.controlagent.data.status;

import net.anotheria.moskito.core.threshold.ThresholdStatus;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Container class for the threshold status and message.
 *
 * @author lrosenberg
 * @since 15.04.13 22:28
 */
public class ThresholdStatusHolder implements Serializable{
	/**
	 * Status.
	 */
	private ThresholdStatus status = ThresholdStatus.GREEN;
	/**
	 * Info about thresholds in the status.
	 */
	private List thresholds = new ArrayList();

	public ThresholdStatus getStatus() {
		return status;
	}

	public void setStatus(ThresholdStatus status) {
		this.status = status;
	}

	public List getThresholds() {
		return thresholds;
	}

	public void setThresholds(List thresholds) {
		this.thresholds = thresholds;
	}

	public void addThresholdInfo(ThresholdInfo info){
		thresholds.add(info);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy