org.moskito.controlagent.data.status.StatusHolder Maven / Gradle / Ivy
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.
* Renamed to StatusHolder - it now contains more then just the threshold.
*
* @author lrosenberg
* @since 15.04.13 22:28
*/
public class StatusHolder implements Serializable{
private static final long serialVersionUID = 1L;
/**
* Status.
*/
private ThresholdStatus status = ThresholdStatus.GREEN;
/**
* Info about thresholds in the status.
*/
private List thresholds = new ArrayList();
/**
* Number of currently running requests.
*/
private int nowRunning = 0;
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);
}
public int getNowRunning() {
return nowRunning;
}
public void setNowRunning(int nowRunning) {
this.nowRunning = nowRunning;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy